Skip to content

Commit d33bdfd

Browse files
committed
fix: testing workflow
1 parent 6ef9485 commit d33bdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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-
"postinstall": "node $PWD/node_modules/@cocreate/cli/check-coc.js"
30+
"postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
3131
},
3232
"repository": {
3333
"type": "git",

0 commit comments

Comments
 (0)