From 432f3e1177a0e3ad1c6d0da839dabaa346e0fa60 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 30 Dec 2025 10:58:01 -0500 Subject: [PATCH 1/7] Add publint --- files/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/package.json b/files/package.json index 94d5323..557178e 100644 --- a/files/package.json +++ b/files/package.json @@ -25,6 +25,7 @@ "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", "lint:js:fix": "eslint . --fix<% if (typescript) { %>", "lint:types": "ember-tsc --noEmit<% } %>", + "lint:publish": "publint --pack", "start": "vite dev", "test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0", "prepack": "rollup --config" @@ -69,6 +70,7 @@ "globals": "^16.1.0", "prettier": "^3.4.2", "prettier-plugin-ember-template-tag": "^2.0.4", + "publint": "0.3.16", "qunit": "^2.24.1", "qunit-dom": "^3.4.0", "rollup": "^4.22.5", From 3e1562c716a7f13f19d72807001540df9db3e6ae Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:01:56 -0500 Subject: [PATCH 2/7] Add shorthand for generating with this blueprint --- .gitignore | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 71c2ffd..93cd668 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules/ .log/ +/my-addon/ diff --git a/package.json b/package.json index d55a1ab..1b7f377 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "author": "", "scripts": { "lint": "prettier --check .", - "format": "prettier --write ." + "format": "prettier --write .", + "new:addon": "pnpm dlx ember-cli@latest addon my-addon --blueprint ." }, "devDependencies": { "prettier": "^3.5.3", From b88fbdc7193f120035179c7a83e81e895d496b85 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:10:57 -0500 Subject: [PATCH 3/7] Fix --- files/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/package.json b/files/package.json index 557178e..759c1cd 100644 --- a/files/package.json +++ b/files/package.json @@ -25,7 +25,7 @@ "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", "lint:js:fix": "eslint . --fix<% if (typescript) { %>", "lint:types": "ember-tsc --noEmit<% } %>", - "lint:publish": "publint --pack", + "lint:publish": "publint run", "start": "vite dev", "test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0", "prepack": "rollup --config" diff --git a/package.json b/package.json index 1b7f377..7cb7de9 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "lint": "prettier --check .", "format": "prettier --write .", - "new:addon": "pnpm dlx ember-cli@latest addon my-addon --blueprint ." + "new:addon": "rm -rf my-addon; pnpm dlx ember-cli@latest addon my-addon --blueprint ." }, "devDependencies": { "prettier": "^3.5.3", From 5f63579d3b22db55c8e748f4203a38cb765802c6 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:21:54 -0500 Subject: [PATCH 4/7] is npm just broken? pnpm works --- files/package.json | 2 +- index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/package.json b/files/package.json index 759c1cd..05777ce 100644 --- a/files/package.json +++ b/files/package.json @@ -17,7 +17,7 @@ "scripts": { "build": "rollup --config", "format": "prettier . --cache --write", - "lint": "concurrently \"<%= packageManager %>:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", + "lint": "rollup --config && concurrently \"<%= packageManager %>:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", "lint:fix": "concurrently \"<%= packageManager %>:lint:*:fix\" --names \"fix:\" --prefixColors auto && <%= packageManager %> run format", "lint:format": "prettier . --cache --check", "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", diff --git a/index.js b/index.js index ee76daa..ed1e5b9 100644 --- a/index.js +++ b/index.js @@ -42,6 +42,7 @@ module.exports = { yarn: false, pnpm: isPnpm(options), npm: isNpm(options), + runScript: isPnpm(options) ? 'pnpm' : 'npm run', typescript: options.typescript, ext: options.typescript ? 'ts' : 'js', blueprint: 'addon', From 30ae8813b34ef7cf0a08d23e79d84953ee03a88d Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:44:03 -0500 Subject: [PATCH 5/7] Update files/package.json Co-authored-by: Sergey Astapov --- files/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/package.json b/files/package.json index 05777ce..93a33ba 100644 --- a/files/package.json +++ b/files/package.json @@ -70,7 +70,7 @@ "globals": "^16.1.0", "prettier": "^3.4.2", "prettier-plugin-ember-template-tag": "^2.0.4", - "publint": "0.3.16", + "publint": "^0.3.16", "qunit": "^2.24.1", "qunit-dom": "^3.4.0", "rollup": "^4.22.5", From 7a061d3d9d08416b1c786d0d78cf16e3155f37a1 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 6 Jan 2026 11:53:03 -0500 Subject: [PATCH 6/7] Move lint:publish --- files/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/package.json b/files/package.json index 93a33ba..6d339f3 100644 --- a/files/package.json +++ b/files/package.json @@ -17,7 +17,7 @@ "scripts": { "build": "rollup --config", "format": "prettier . --cache --write", - "lint": "rollup --config && concurrently \"<%= packageManager %>:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", + "lint": "concurrently \"<%= packageManager %>:lint:*(!fix)\" --names \"lint:\" --prefixColors auto", "lint:fix": "concurrently \"<%= packageManager %>:lint:*:fix\" --names \"fix:\" --prefixColors auto && <%= packageManager %> run format", "lint:format": "prettier . --cache --check", "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", @@ -25,7 +25,7 @@ "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", "lint:js:fix": "eslint . --fix<% if (typescript) { %>", "lint:types": "ember-tsc --noEmit<% } %>", - "lint:publish": "publint run", + "lint:publish": "<%= runScript %> build && publint run", "start": "vite dev", "test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0", "prepack": "rollup --config" From f5842eb966b0a9d83c104d807c5f35ea9818077a Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 6 Jan 2026 12:00:46 -0500 Subject: [PATCH 7/7] Don't print warnings --- files/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/package.json b/files/package.json index 6d339f3..494cdda 100644 --- a/files/package.json +++ b/files/package.json @@ -25,7 +25,7 @@ "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern", "lint:js:fix": "eslint . --fix<% if (typescript) { %>", "lint:types": "ember-tsc --noEmit<% } %>", - "lint:publish": "<%= runScript %> build && publint run", + "lint:publish": "<%= runScript %> build && publint run --level error", "start": "vite dev", "test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0", "prepack": "rollup --config"