From 826106fe94adb80b636f46da4c1c1297ecb66f33 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 13 Feb 2026 13:22:45 -0500 Subject: [PATCH] build: fix npm publish warnings Remove ./ prefix from bin paths to fix npm 11.x stripping them during publish. Add .npmignore to control published files and .gitignore *.tgz to keep packed tarballs out of the repo. Co-Authored-By: Claude Opus 4.6 --- .gitignore | 1 + .npmignore | 7 +++++++ package.json | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 3c3629e..9e406a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +*.tgz diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..cafd47e --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +.github/ +.gitignore +.nvmrc +.releaserc +catalog-info.yaml +package-lock.json +*.tgz diff --git a/package.json b/package.json index 8d7333b..17358b4 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "license": "AGPL-3.0", "author": "Open edX Community", "bin": { - "devutils-dev-with-autoinstall": "./tools/autoinstall/dev-with-autoinstall.mjs", - "devutils-serve-runtime-config": "./tools/serveconfig/serve-runtime-config.mjs" + "devutils-dev-with-autoinstall": "tools/autoinstall/dev-with-autoinstall.mjs", + "devutils-serve-runtime-config": "tools/serveconfig/serve-runtime-config.mjs" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1"