diff options
author | zxp19821005 | 2024-04-11 15:59:13 +0800 |
---|---|---|
committer | zxp19821005 | 2024-04-11 15:59:13 +0800 |
commit | 07756e64de5e84fdbd45b29b5506a029d0e27058 (patch) | |
tree | d668f914dc0fe44edcd175dcbfc3735b6cb82a9e /package.json.patch.js | |
parent | a74f3afd390f471efc86c90a1b2e007e9975664d (diff) | |
download | aur-keeweb-git.tar.gz |
update to 1.18.7.r37.gc1fda05c
Diffstat (limited to 'package.json.patch.js')
-rw-r--r-- | package.json.patch.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/package.json.patch.js b/package.json.patch.js deleted file mode 100644 index 31362616c831..000000000000 --- a/package.json.patch.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -const PATCHABLE_FILE = './package.json'; - -const fs = require('fs'); -const data = JSON.parse(fs.readFileSync(PATCHABLE_FILE)); - -// remove extra dependencies -const removePkg = [ - /^chai$/, - /^electron-/, - /^electron$/, - /^eslint-/, - /^eslint$/, - /^grunt-contrib-compress$/, - /^grunt-contrib-deb$/, - /^grunt-contrib-watch$/, - /^grunt-electron$/, - /^grunt-eslint$/, - /^mocha$/, - /^puppeteer$/, - /^stats-webpack-plugin$/, - /^sumchecker$/, - /^webpack-bundle-analyzer$/, - /^webpack-dev-server$/, - /keeweb-native-modules$/, -]; - -Object.keys(data.dependencies).forEach(dep => { - if (removePkg.some(re => re.test(dep))) - delete data.dependencies[dep]; -}); - -fs.writeFileSync(PATCHABLE_FILE, JSON.stringify(data, null, '\t')); |