mirror of
https://github.com/strapi/strapi.git
synced 2025-08-18 05:37:10 +00:00
Remove file dependencies before commit
This commit is contained in:
parent
0f9c16940a
commit
a8732565c9
4901
package-lock.json
generated
4901
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "make test",
|
||||
"postinstall": "lerna bootstrap --stream && node ./scripts/setup.js"
|
||||
"removefiledependencies": "node ./scripts/removefiledependencies.js",
|
||||
"postinstall": "lerna bootstrap --stream && node ./scripts/setup.js && node ./scripts/removefiledependencies.js"
|
||||
},
|
||||
"author": {
|
||||
"email": "hi@strapi.io",
|
||||
@ -36,6 +37,10 @@
|
||||
"url": "http://strapi.io"
|
||||
}
|
||||
],
|
||||
"pre-commit": [
|
||||
"removefiledependencies",
|
||||
"test"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/strapi/strapi.git"
|
||||
|
@ -44,4 +44,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
6
packages/strapi-bookshelf/package-lock.json
generated
6
packages/strapi-bookshelf/package-lock.json
generated
@ -29,9 +29,9 @@
|
||||
"integrity": "sha1-eRQg1/VR7qKJdFOop3ZT+WYG1nw="
|
||||
},
|
||||
"bookshelf": {
|
||||
"version": "0.10.3",
|
||||
"resolved": "https://registry.npmjs.org/bookshelf/-/bookshelf-0.10.3.tgz",
|
||||
"integrity": "sha1-clWCBOg4Ffjlu6b9gIcCVj5ys+Q=",
|
||||
"version": "0.10.4",
|
||||
"resolved": "https://registry.npmjs.org/bookshelf/-/bookshelf-0.10.4.tgz",
|
||||
"integrity": "sha1-/gaYRFZ0BBeroT0NdsewZdHxd00=",
|
||||
"requires": {
|
||||
"babel-runtime": "6.23.0",
|
||||
"bluebird": "3.5.0",
|
||||
|
@ -19,7 +19,7 @@
|
||||
"bookshelf": "^0.10.3",
|
||||
"lodash": "^4.17.4",
|
||||
"pluralize": "^3.1.0",
|
||||
"strapi-utils": "file:../strapi-utils"
|
||||
"strapi-utils": "^3.0.0-alpha.4"
|
||||
},
|
||||
"strapi": {
|
||||
"isHook": true,
|
||||
@ -54,4 +54,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -46,4 +46,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -41,4 +41,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -53,4 +53,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -45,4 +45,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -44,4 +44,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -46,4 +46,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
12298
packages/strapi-helper-plugin/package-lock.json
generated
Normal file
12298
packages/strapi-helper-plugin/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -121,4 +121,4 @@
|
||||
"webpack-dev-middleware": "^1.8.4",
|
||||
"webpack-hot-middleware": "^2.13.1"
|
||||
}
|
||||
}
|
||||
}
|
@ -50,4 +50,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -20,7 +20,7 @@
|
||||
"mongoose-double": "0.0.1",
|
||||
"mongoose-float": "^1.0.2",
|
||||
"pluralize": "^3.1.0",
|
||||
"strapi-utils": "file:../strapi-utils"
|
||||
"strapi-utils": "^3.0.0-alpha.4"
|
||||
},
|
||||
"strapi": {
|
||||
"isHook": true
|
||||
@ -52,4 +52,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -50,4 +50,4 @@
|
||||
"devDependencies": {
|
||||
"strapi-helper-plugin": "3.0.0-alpha.4"
|
||||
}
|
||||
}
|
||||
}
|
@ -50,4 +50,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -50,4 +50,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -100,4 +100,4 @@
|
||||
"devDependencies": {
|
||||
"forever-monitor": "^1.7.1"
|
||||
}
|
||||
}
|
||||
}
|
21
scripts/removefiledependencies.js
Normal file
21
scripts/removefiledependencies.js
Normal file
@ -0,0 +1,21 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
try {
|
||||
const pkgJSON = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), 'package.json'), 'utf8'));
|
||||
const packages = fs.readdirSync(path.resolve(process.cwd(),'packages'), 'utf8');
|
||||
|
||||
packages.filter(pkg => pkg.indexOf('strapi') !== -1).forEach(pkg => {
|
||||
const packageJSON = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), 'packages', pkg, 'package.json'), 'utf8'));
|
||||
|
||||
Object.keys(packageJSON.dependencies).filter(dependency => dependency.indexOf('strapi-') !== -1).forEach(dependency => {
|
||||
if (packageJSON.dependencies[dependency].indexOf('file:') !== -1) {
|
||||
packageJSON.dependencies[dependency] = '^' + pkgJSON.version;
|
||||
}
|
||||
});
|
||||
|
||||
fs.writeFileSync(path.resolve(process.cwd(), 'packages', pkg, 'package.json'), JSON.stringify(packageJSON, null, 2), 'utf8');
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user