Skip to content

Commit 5c842e6

Browse files
committed
fix: testing workflow
1 parent 7a525a0 commit 5c842e6

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
@@ -28,7 +28,7 @@
2828
"start": "npx webpack --config webpack.config.js",
2929
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
3030
"dev": "npx webpack --config webpack.config.js --watch",
31-
"postinstall": "node $PWD/node_modules/@cocreate/cli/check-coc.js"
31+
"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); } }\""
3232
},
3333
"repository": {
3434
"type": "git",

0 commit comments

Comments
 (0)