From 53de3841c34376421ffcc1ad3fc4c2fdbe9f740d Mon Sep 17 00:00:00 2001 From: Tyler Collins Date: Mon, 1 Dec 2025 14:44:25 -0700 Subject: [PATCH 1/2] chore: re-enable npm caching [] --- .circleci/config.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 35643c2d..dee5b9a6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,6 @@ jobs: - checkout - node/install: node-version: << parameters.node-version >> - with-cache: false - setup-npm - run: npm ci - run: @@ -41,7 +40,6 @@ jobs: - checkout - node/install: node-version: "20" - with-cache: false - setup-npm - run: npm ci - run: npm run build @@ -54,7 +52,6 @@ jobs: - checkout - node/install: node-version: "20" - with-cache: false - setup-npm - run: npm ci @@ -69,7 +66,6 @@ jobs: - run: echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc - node/install: node-version: "20" - with-cache: false - run: npm ci - run: name: Releasing From bf62af9fa58157ea43959e150a3b5a7f700d5a71 Mon Sep 17 00:00:00 2001 From: Tyler Collins Date: Mon, 1 Dec 2025 17:07:49 -0700 Subject: [PATCH 2/2] refactor: don't use npm pre- & post- scripts --- .circleci/config.yml | 2 +- package.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dee5b9a6..05cd8511 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,7 +69,7 @@ jobs: - run: npm ci - run: name: Releasing - command: npm run semantic-release + command: npm run publish workflows: lint-build-release: diff --git a/package.json b/package.json index 9da06629..173d43c0 100644 --- a/package.json +++ b/package.json @@ -37,16 +37,16 @@ "prepare": "husky install", "lint": "eslint --ext .ts ./src", "lint:fix": "npm run lint -- --fix", - "pretest": "echo ' 🔑 Creating valid keypair for testing' && bash test/make-private-keys.sh", + "generate:key": "echo ' 🔑 Creating valid keypair for testing' && bash test/make-private-keys.sh", "test:unit": "vitest run src", "test:integration": "vitest run test", - "test": "npm run test:unit && npm run test:integration", - "build": "rm -rf lib && tsup", - "postbuild": "cp ./lib/index.d.ts ./lib/index.d.cts", + "test": "npm run generate:key && npm run test:unit && npm run test:integration", + "build": "rm -rf lib && tsup && cp ./lib/index.d.ts ./lib/index.d.cts", "build:docs": "typedoc --options .typedocrc.json src", "start:docs": "serve ./docs", - "prepublishOnly": "npm run build && npm run build:docs", + "build:all": "npm run build && npm run build:docs", "semantic-release": "semantic-release", + "publish": "npm run build:all && npm run semantic-release", "format": "prettier --write ./{src,test}/**/*.ts" }, "author": "Contentful GmbH",