Skip to content

Commit 89f2494

Browse files
committed
clean dist before build and remove duplicate bin entry
1 parent 29b281a commit 89f2494

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"type": "module",
66
"license": "MIT",
77
"bin": {
8-
"strapi-dockerize": "dist/index.js",
9-
"strapi-strapi-tool-dockerize": "dist/index.js"
8+
"strapi-dockerize": "dist/index.js"
109
},
1110
"main": "dist/index.js",
1211
"files": [
@@ -35,7 +34,7 @@
3534
"dev:scenario:sqlite": "bun run src/index.ts reset --path=tmp/fixtures/v5-bun-sqlite && bun run src/index.ts --path=tmp/fixtures/v5-bun-sqlite --yes --skip-deps && bun run scripts/dev-inspect.ts tmp/fixtures/v5-bun-sqlite",
3635
"dev:scenario:v4": "bun run src/index.ts reset --path=tmp/fixtures/v4-npm-postgres && bun run src/index.ts --path=tmp/fixtures/v4-npm-postgres --yes --skip-deps && bun run scripts/dev-inspect.ts tmp/fixtures/v4-npm-postgres",
3736
"dev:reset:all": "bun run src/index.ts reset --path=tmp/test-strapi && bun run src/index.ts reset --path=tmp/fixtures/v5-npm-postgres && bun run src/index.ts reset --path=tmp/fixtures/v5-pnpm-mysql && bun run src/index.ts reset --path=tmp/fixtures/v5-bun-sqlite && bun run src/index.ts reset --path=tmp/fixtures/v4-npm-postgres && bun run src/index.ts reset --path=tmp/fixtures/v5-npm-nodetect",
38-
"build": "bun build src/index.ts --target=node --outfile dist/index.js && cp -r src/templates/files dist/files && printf '#!/usr/bin/env node\\n' | cat - dist/index.js > dist/temp.js && mv dist/temp.js dist/index.js",
37+
"build": "rm -rf dist && bun build src/index.ts --target=node --outfile dist/index.js && cp -r src/templates/files dist/files && printf '#!/usr/bin/env node\\n' | cat - dist/index.js > dist/temp.js && mv dist/temp.js dist/index.js",
3938
"test": "bun test",
4039
"lint": "bunx ultracite",
4140
"lint:fix": "bunx ultracite --fix"

0 commit comments

Comments
 (0)