Skip to content

Commit bf62af9

Browse files
committed
refactor: don't use npm pre- & post- scripts
1 parent 53de384 commit bf62af9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- run: npm ci
7070
- run:
7171
name: Releasing
72-
command: npm run semantic-release
72+
command: npm run publish
7373

7474
workflows:
7575
lint-build-release:

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
"prepare": "husky install",
3838
"lint": "eslint --ext .ts ./src",
3939
"lint:fix": "npm run lint -- --fix",
40-
"pretest": "echo ' 🔑 Creating valid keypair for testing' && bash test/make-private-keys.sh",
40+
"generate:key": "echo ' 🔑 Creating valid keypair for testing' && bash test/make-private-keys.sh",
4141
"test:unit": "vitest run src",
4242
"test:integration": "vitest run test",
43-
"test": "npm run test:unit && npm run test:integration",
44-
"build": "rm -rf lib && tsup",
45-
"postbuild": "cp ./lib/index.d.ts ./lib/index.d.cts",
43+
"test": "npm run generate:key && npm run test:unit && npm run test:integration",
44+
"build": "rm -rf lib && tsup && cp ./lib/index.d.ts ./lib/index.d.cts",
4645
"build:docs": "typedoc --options .typedocrc.json src",
4746
"start:docs": "serve ./docs",
48-
"prepublishOnly": "npm run build && npm run build:docs",
47+
"build:all": "npm run build && npm run build:docs",
4948
"semantic-release": "semantic-release",
49+
"publish": "npm run build:all && npm run semantic-release",
5050
"format": "prettier --write ./{src,test}/**/*.ts"
5151
},
5252
"author": "Contentful GmbH",

0 commit comments

Comments
 (0)