Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0352862

Browse files
chore(cna-template): use prepare script (#777)
1 parent 335ef58 commit 0352862

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cna-template/template/nuxt/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
}
5757
if (!lintStaged && !commitlint) {
5858
delete pkg.devDependencies.husky
59-
delete pkg.scripts.postinstall
59+
delete pkg.scripts.prepare
6060
}
6161

6262
const lintScript = Object.values(lintScripts).join(' && ')

packages/cna-template/template/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"generate": "nuxt generate",
77
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
88
"lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore",
9-
"postinstall": "husky install"
9+
"prepare": "husky install"
1010
},
1111
"lint-staged": {
1212
"*.{js,vue}": "eslint",

packages/create-nuxt-app/test/snapshots/index.test.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,7 @@ Generated by [AVA](https://avajs.dev).
23512351
lint: 'yarn lint:js && yarn lint:style',
23522352
'lint:js': 'eslint --ext ".js,.vue" --ignore-path .gitignore .',
23532353
'lint:style': 'stylelint "**/*.{vue,css}" --ignore-path .gitignore',
2354-
postinstall: 'husky install',
2354+
prepare: 'husky install',
23552355
start: 'nuxt start',
23562356
},
23572357
}
@@ -2815,7 +2815,7 @@ Generated by [AVA](https://avajs.dev).
28152815
build: 'nuxt build',
28162816
dev: 'nuxt',
28172817
generate: 'nuxt generate',
2818-
postinstall: 'husky install',
2818+
prepare: 'husky install',
28192819
start: 'nuxt start',
28202820
},
28212821
}
Binary file not shown.

0 commit comments

Comments
 (0)