File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed
Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11/node_modules /
22.log /
3+ /my-addon /
Original file line number Diff line number Diff line change 2525 "lint:hbs:fix" : " ember-template-lint . --fix --no-error-on-unmatched-pattern" ,
2626 "lint:js:fix" : " eslint . --fix<% if (typescript) { %>" ,
2727 "lint:types" : " ember-tsc --noEmit<% } %>" ,
28+ "lint:publish" : " <%= runScript %> build && publint run --level error" ,
2829 "start" : " vite dev" ,
2930 "test" : " vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0" ,
3031 "prepack" : " rollup --config"
6970 "globals" : " ^16.1.0" ,
7071 "prettier" : " ^3.4.2" ,
7172 "prettier-plugin-ember-template-tag" : " ^2.0.4" ,
73+ "publint" : " ^0.3.16" ,
7274 "qunit" : " ^2.24.1" ,
7375 "qunit-dom" : " ^3.4.0" ,
7476 "rollup" : " ^4.22.5" ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ module.exports = {
4242 yarn : false ,
4343 pnpm : isPnpm ( options ) ,
4444 npm : isNpm ( options ) ,
45+ runScript : isPnpm ( options ) ? 'pnpm' : 'npm run' ,
4546 typescript : options . typescript ,
4647 ext : options . typescript ? 'ts' : 'js' ,
4748 blueprint : 'addon' ,
Original file line number Diff line number Diff line change 1313 "author" : " " ,
1414 "scripts" : {
1515 "lint" : " prettier --check ." ,
16- "format" : " prettier --write ."
16+ "format" : " prettier --write ." ,
17+ "new:addon" : " rm -rf my-addon; pnpm dlx ember-cli@latest addon my-addon --blueprint ."
1718 },
1819 "devDependencies" : {
1920 "prettier" : " ^3.5.3" ,
You can’t perform that action at this time.
0 commit comments