create-young-proj 0.9.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/init.mjs +8 -0
  2. package/package.json +4 -3
package/init.mjs ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ try {
3
+ await import('simple-git-hooks/postinstall.js')
4
+ console.log('simple-git-hooks installed successfully')
5
+ }
6
+ catch (error) {
7
+ console.log('just use, not dev')
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-young-proj",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "create project from template",
5
5
  "author": "BluesYoung-web",
6
6
  "license": "MIT",
@@ -24,7 +24,8 @@
24
24
  "cyp": "index.mjs"
25
25
  },
26
26
  "files": [
27
- "index.js",
27
+ "index.mjs",
28
+ "init.mjs",
28
29
  "template-*",
29
30
  "dist"
30
31
  ],
@@ -36,7 +37,7 @@
36
37
  "build": "unbuild",
37
38
  "lint": "eslint .",
38
39
  "lint:fix": "eslint . --fix",
39
- "postinstall": "simple-git-hooks"
40
+ "postinstall": "node ./init.mjs"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@antfu/eslint-config": "^0.41.0",