Skip to content

Commit 866ec5a

Browse files
committed
fix: removed post install and add add packages to apprved list
1 parent e0155ae commit 866ec5a

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"scripts": {
2727
"start": "npx webpack --config webpack.config.js",
2828
"build": "npx webpack --mode=production --config webpack.config.js",
29-
"dev": "npx webpack --config webpack.config.js --watch",
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); } }\""
29+
"dev": "npx webpack --config webpack.config.js --watch"
3130
},
3231
"repository": {
3332
"type": "git",
@@ -44,18 +43,18 @@
4443
"url": "https://github.com/sponsors/CoCreate-app"
4544
},
4645
"main": "./src/index.js",
47-
"devDependencies": {
48-
"css-loader": "^5.1.3",
49-
"esbuild": "^0.25.2",
50-
"esbuild-loader": "^4.3.0",
51-
"mini-css-extract-plugin": "^1.5.0",
52-
"webpack": "^5.24.4",
53-
"webpack-cli": "^4.5.0",
54-
"webpack-log": "^3.0.1"
55-
},
5646
"dependencies": {
5747
"@cocreate/element-prototype": "^1.31.4",
5848
"@cocreate/observer": "^1.19.0",
5949
"@cocreate/utils": "^1.42.2"
50+
},
51+
"devDependencies": {
52+
"@cocreate/webpack": "^1.4.3"
53+
},
54+
"allowScripts": {
55+
"@cocreate/element-prototype@1.31.4": true,
56+
"@cocreate/observer@1.19.0": true,
57+
"@cocreate/utils@1.42.2": true,
58+
"@cocreate/webpack@1.4.3": true
6059
}
61-
}
60+
}

0 commit comments

Comments
 (0)