Skip to content

Commit

Permalink
feat: dont bundle node_modules/
Browse files Browse the repository at this point in the history
  • Loading branch information
KotRikD committed Dec 17, 2023
1 parent 2edb72d commit 7be0d63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 1 addition & 12 deletions packages/tosu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@
"ts:run": "ts-node --transpile-only -r tsconfig-paths/register --project tsconfig.json",
"ts:compile": "ncc build src/index.ts -o dist -m -d",
"run:dev": "pnpm run ts:run src/index.ts",
"compile": "pnpm run ts:compile && pkg --compress brotli . && pnpm run ts:run src/postBuild.ts"
},
"pkg": {
"scripts": "dist/**/*.js",
"assets": [
"dist/**/*.node",
"dist/target/**/*"
],
"targets": [
"node18-win-x64"
],
"outputPath": "dist"
"compile": "pnpm run ts:compile && pkg -t node18-win-x64 --output dist/tosu.exe --debug --config pkg.json --compress brotli dist/index.js && pnpm run ts:run src/postBuild.ts"
},
"dependencies": {
"@types/koa__router": "^12.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/tosu/pkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"scripts": "dist/**/*.js",
"assets": [
"dist/**/*.node",
"dist/target/**/*"
],
"targets": [
"node18-win-x64"
],
"outputPath": "dist"
}

0 comments on commit 7be0d63

Please sign in to comment.