From 0f0795a81997561f815ba80808ed0ae64ff86655 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Mon, 1 Jun 2026 16:46:54 -0400 Subject: [PATCH 1/2] Add a secure NPM configuration --- .npmrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7626d76 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +min-release-age=3 +allow-git=none +ignore-scripts=true From 56f5744d2c6104b1d4299c20a8ac341fc2ae8106 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Mon, 1 Jun 2026 16:52:36 -0400 Subject: [PATCH 2/2] Explicitly invoke lifecycle scripts --- package.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ae89485..e7a5c43 100644 --- a/package.json +++ b/package.json @@ -27,14 +27,10 @@ }, "scripts": { "clean": "rm -rf dist/", - "prebuild": "npm run clean", - "build": "tsc && tsc --module commonjs --outDir dist/cjs", - "postbuild": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", + "build": "npm run clean && tsc && tsc --module commonjs --outDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", "lint": "eslint src/ __tests__/", - "pretest": "npm run build", - "test": "jest", - "version": "echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build", - "prepublishOnly": "npm run build" + "test": "npm run build && jest", + "version": "echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build" }, "repository": { "type": "git",