Skip to content

Commit

Permalink
fix(build): fix prod version command
Browse files Browse the repository at this point in the history
  • Loading branch information
divyenduz committed Sep 9, 2023
1 parent 90144c2 commit 76bcab0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "plv8ify",
"version": "0.0.45",
"type": "module",
"main": "dist/index.js",
"main": "dist/src/index.js",
"license": "MIT",
"bin": {
"plv8ify": "dist/index.js"
"plv8ify": "dist/src/index.js"
},
"prepublish": "chmod +x dist/index.js",
"prepublish": "chmod +x dist/src/index.js",
"dependencies": {
"arg": "5.0.1",
"dotenv": "16.0.3",
Expand Down Expand Up @@ -37,8 +37,9 @@
"prepublish": "bun build",
"test": "bun test",
"dev": "bun example:turf-js",
"test:prod": "bun run build && bun run --bun dist/index.js generate --input-file examples/turf-js/input.ts --output-folder examples/turf-js/plv8ify-dist",
"test:prod-node": "bun run build && yarn node dist/index.js generate --input-file examples/turf-js/input.ts --output-folder examples/turf-js/plv8ify-dist",
"test:prod-version": "bun run build && bun run --bun dist/src/index.js version",
"test:prod": "bun run build && bun run --bun dist/src/index.js generate --input-file examples/turf-js/input.ts --output-folder examples/turf-js/plv8ify-dist",
"test:prod-node": "bun run build && yarn node dist/src/index.js generate --input-file examples/turf-js/input.ts --output-folder examples/turf-js/plv8ify-dist",
"example:hello": "bun run --bun src/index.ts generate --input-file examples/hello/input.ts --output-folder examples/hello/plv8ify-dist",
"example:hello-start_proc": "bun run --bun src/index.ts generate --input-file examples/hello-start_proc/input.ts --output-folder examples/hello-start_proc/plv8ify-dist --mode start_proc",
"example:hello-bundle": "bun run --bun src/index.ts generate --input-file examples/hello-bundle/input.ts --output-folder examples/hello-bundle/plv8ify-dist --mode bundle --scope-prefix myScope",
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"noEmit": false,
"allowImportingTsExtensions": false,

"resolveJsonModule": true, // Include package.json in the build (for version cmd)

"moduleResolution": "NodeNext",
"module": "NodeNext"
},
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,

"rootDir": "src",
"outDir": "dist",
"declaration": true,
"baseUrl": ".",
"baseUrl": "."
},
"include": ["src/**/*"],
"include": ["src/**/*", "package.json"],
"exclude": [
"node_modules",
"examples/**/*",
Expand Down

0 comments on commit 76bcab0

Please sign in to comment.