Skip to content

Commit

Permalink
ci: prevent us from publishing empty pkgs by accident
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Aug 13, 2024
1 parent d62cae9 commit 896ede5
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions @coderspirit/internal-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"bin": {
"biome-check-staged": "./src/biome-check-staged.ts",
"check-dist": "./src/check-dist.sh",
"safe-publish": "./src/safe-publish.ts"
},
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions @coderspirit/internal-tools/src/check-dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

if [ ! -d "./dist" ]; then
echo "'./dist' directory not found in '${PWD}'"
exit 1
fi
2 changes: 1 addition & 1 deletion @coderspirit/lambda-ioc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal-inputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"typecheck": "tsc --incremental true --tsBuildInfoFile .tsbuildinfo --noEmit -p ./tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal-symbols/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"typecheck": "tsc --incremental true --tsBuildInfoFile .tsbuildinfo --noEmit -p ./tsconfig.json"
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal-typebox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/nominal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
Expand Down
2 changes: 1 addition & 1 deletion @coderspirit/safe-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"format-staged": "biome-check-staged",
"lint": "pnpm lint:biome",
"lint:biome": "pnpm biome check --files-ignore-unknown=true .",
"lint:publint": "publint",
"lint:publint": "check-dist && publint",
"prepublishOnly": "turbo all:ci",
"publish:safe": "safe-publish",
"test": "vitest -c vitest.config.mts run",
Expand Down

0 comments on commit 896ede5

Please sign in to comment.