From 50be0a8636cc82b0957f5b792a07b8939bc57f6e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 31 Mar 2026 20:48:39 +0000 Subject: [PATCH 1/5] Add publishConfig to package.json and create .npmignore Agent-Logs-Url: https://github.com/Coderrob/typescript-type-guards/sessions/c0985e1f-149d-4498-bf97-12cd09926dc7 Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com> --- .npmignore | 28 ++++++++++++++++++++++++++++ package.json | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..ce1ccf8 --- /dev/null +++ b/.npmignore @@ -0,0 +1,28 @@ +# Source files +src/ +public/ + +# Test coverage +coverage/ + +# Configuration files +.editorconfig +.jscpd.json +.prettierignore +.prettierrc +eslint.config.mjs +jest.config.js +tsconfig.json + +# CI/CD +.github/ +.gitignore + +# Build artifacts +*.tsbuildinfo +*.js.map + +# Dependency lock files +package-lock.json +yarn.lock +pnpm-lock.yaml diff --git a/package.json b/package.json index 19c0e71..3641231 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,9 @@ "test": "jest", "test:coverage": "jest --coverage" }, + "publishConfig": { + "access": "public" + }, "sideEffects": false, "types": "dist/index.d.ts", "version": "1.0.0" From 4a82f245aaccb668a0fc213bc45a25805d011ec0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Apr 2026 00:41:13 +0000 Subject: [PATCH 2/5] Apply reviewer feedback: remove publishConfig, simplify .npmignore Agent-Logs-Url: https://github.com/Coderrob/typescript-type-guards/sessions/7d1b22e5-7333-4186-989d-d6aa2fb02765 Co-authored-by: Coderrob <7213776+Coderrob@users.noreply.github.com> --- .npmignore | 29 ++++------------------------- package.json | 3 --- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/.npmignore b/.npmignore index ce1ccf8..853d8d3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,28 +1,7 @@ -# Source files -src/ -public/ +# This project uses `"files": ["dist"]` in package.json, so only files under +# dist/ (plus standard top-level files like README/LICENSE) are published. +# These patterns therefore only affect the contents of dist/, not the repo root. -# Test coverage -coverage/ - -# Configuration files -.editorconfig -.jscpd.json -.prettierignore -.prettierrc -eslint.config.mjs -jest.config.js -tsconfig.json - -# CI/CD -.github/ -.gitignore - -# Build artifacts +# Build artifacts that should not be published *.tsbuildinfo *.js.map - -# Dependency lock files -package-lock.json -yarn.lock -pnpm-lock.yaml diff --git a/package.json b/package.json index 3641231..19c0e71 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,6 @@ "test": "jest", "test:coverage": "jest --coverage" }, - "publishConfig": { - "access": "public" - }, "sideEffects": false, "types": "dist/index.d.ts", "version": "1.0.0" From abe3d21ed91502440b8b89c7c236e57a3c26d774 Mon Sep 17 00:00:00 2001 From: Rob Lindley Date: Wed, 1 Apr 2026 21:35:15 -0500 Subject: [PATCH 3/5] Rename package to '@coderrob/typescript-type-guards' --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 19c0e71..fb58108 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ ], "license": "Apache-2.0", "main": "dist/index.js", - "name": "typescript-type-guards", + "name": "@coderrob/typescript-type-guards", "repository": { "type": "git", "url": "git+https://github.com/Coderrob/typescript-type-guards.git" From 8ef1b85baac7db62d527314a291e005d3d670859 Mon Sep 17 00:00:00 2001 From: Rob Lindley Date: Wed, 1 Apr 2026 21:37:01 -0500 Subject: [PATCH 4/5] Add publishConfig for public access --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index fb58108..6842df8 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,9 @@ "license": "Apache-2.0", "main": "dist/index.js", "name": "@coderrob/typescript-type-guards", + "publishConfig": { + "access": "public" + }, "repository": { "type": "git", "url": "git+https://github.com/Coderrob/typescript-type-guards.git" From 47ba76128560d011b86c9ed1bb315c26402e6e0c Mon Sep 17 00:00:00 2001 From: Rob Lindley Date: Wed, 1 Apr 2026 21:37:34 -0500 Subject: [PATCH 5/5] Update .npmignore Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .npmignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 853d8d3..62c173b 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,4 @@ # Build artifacts that should not be published *.tsbuildinfo -*.js.map +*.map