|
37 | 37 | "prepare": "husky install", |
38 | 38 | "lint": "eslint --ext .ts ./src", |
39 | 39 | "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", |
41 | 41 | "test:unit": "vitest run src", |
42 | 42 | "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", |
46 | 45 | "build:docs": "typedoc --options .typedocrc.json src", |
47 | 46 | "start:docs": "serve ./docs", |
48 | | - "prepublishOnly": "npm run build && npm run build:docs", |
| 47 | + "build:all": "npm run build && npm run build:docs", |
49 | 48 | "semantic-release": "semantic-release", |
| 49 | + "publish": "npm run build:all && npm run semantic-release", |
50 | 50 | "format": "prettier --write ./{src,test}/**/*.ts" |
51 | 51 | }, |
52 | 52 | "author": "Contentful GmbH", |
|
0 commit comments