From 3681dd579fd567096326a85ea89efd4a42d6b331 Mon Sep 17 00:00:00 2001 From: frankpagan Date: Sun, 11 Jun 2023 15:17:45 -0600 Subject: [PATCH] fix: testing workflow --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd80c9a..4990f6c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "start": "npx webpack --config webpack.config.js", "build": "NODE_ENV=production npx webpack --config webpack.config.js", "dev": "npx webpack --config webpack.config.js --watch", - "postinstall": "node $PWD/node_modules/@cocreate/cli/check-coc.js" + "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); } }\"" }, "repository": { "type": "git",