Skip to content

Commit b634daf

Browse files
committed
fix: testing workflow
1 parent 81dfb87 commit b634daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"start": "npx webpack --config webpack.config.js",
2626
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
2727
"dev": "npx webpack --config webpack.config.js --watch",
28-
"postinstall": "node $PWD/node_modules/@cocreate/cli/check-coc.js"
28+
"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); } }\""
2929
},
3030
"repository": {
3131
"type": "git",

0 commit comments

Comments
 (0)