Skip to content

Commit 9af6d9b

Browse files
committed
@cocreate/cli/check-coc.js to install gloablly if does not exist
1 parent ec0bd3d commit 9af6d9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"start": "npx webpack --config webpack.config.js",
2828
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
2929
"dev": "npx webpack --config webpack.config.js --watch",
30-
"docs": "node ./node_modules/@cocreate/docs/src/index.js"
30+
"docs": "node ./node_modules/@cocreate/docs/src/index.js",
31+
"postinstall": "node ./node_modules/@cocreate/cli/check-coc.js"
3132
},
3233
"repository": {
3334
"type": "git",
@@ -47,6 +48,7 @@
4748
"devDependencies": {
4849
"@babel/core": "^7.9.6",
4950
"@babel/preset-env": "^7.9.6",
51+
"@cocreate/cli": "^1.29.3",
5052
"babel-loader": "^8.1.0",
5153
"clean-webpack-plugin": "^3.0.0",
5254
"file-loader": "^6.2.0",

0 commit comments

Comments
 (0)