Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Fix incorrect path for production source code
Browse files Browse the repository at this point in the history
SWC 0.3.0 introduced a breaking change which caused the production build to output to `dist/src` instead of `dist`.

swc-project/cli#281
  • Loading branch information
JosephLeedy committed Feb 12, 2024
1 parent 89988e3 commit fc8f04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dev": "tsx src/main.ts",
"dev:watch": "tsx --watch src/main.ts",
"dev:debug": "tsx --inspect-brk src/main.ts",
"build": "swc src -d dist",
"build:watch": "swc src -d dist -w",
"build": "swc src -d dist --strip-leading-paths",
"build:watch": "swc src -d dist -w --strip-leading-paths",
"lint": "eslint src",
"test": "PORT=0 NODE_OPTIONS=--experimental-vm-modules jest",
"test:coverage": "PORT=0 NODE_OPTIONS=--experimental-vm-modules jest --coverage",
Expand Down

0 comments on commit fc8f04d

Please sign in to comment.