mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Clean code
This commit is contained in:
parent
0ac7c435f3
commit
aaac5ba391
@ -55,8 +55,8 @@ module.exports = scope => {
|
||||
'url': scope.website || ''
|
||||
}],
|
||||
'engines': {
|
||||
'node': '>= 7.0.0',
|
||||
'npm': '>= 3.0.0'
|
||||
'node': '>= 9.0.0',
|
||||
'npm': '>= 5.3.0'
|
||||
},
|
||||
'license': scope.license || 'MIT'
|
||||
});
|
||||
|
||||
@ -1 +0,0 @@
|
||||
module.exports = {};
|
||||
@ -46,8 +46,8 @@
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 7.0.0",
|
||||
"npm": ">= 3.0.0"
|
||||
"node": ">= 9.0.0",
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@ -509,8 +509,6 @@ module.exports = {
|
||||
default:
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// - Handle limit, skip, etc options
|
||||
_.merge(acc.resolver[globalId], {
|
||||
[association.alias]: async (obj, options, context) => {
|
||||
// Construct parameters object to retrieve the correct related entries.
|
||||
|
||||
@ -84,7 +84,7 @@ module.exports = async function() {
|
||||
}
|
||||
|
||||
// Initialize array.
|
||||
let previousDependencies = this.hook[hook].dependencies.map(x => x.replace('strapi-', '')) || [];;
|
||||
let previousDependencies = this.hook[hook].dependencies.map(x => x.replace('strapi-', '')) || [];
|
||||
|
||||
// Add BEFORE middlewares to load and remove the current one
|
||||
// to avoid that it waits itself.
|
||||
|
||||
@ -129,6 +129,7 @@ watcher('📦 Linking strapi-plugin-content-type-builder...', 'npm link --no-op
|
||||
watcher('🏗 Building...', 'npm run build');
|
||||
|
||||
shell.cd('../strapi-plugin-graphql');
|
||||
watcher('', 'npm install ../strapi-utils');
|
||||
shell.rm('-f', 'package-lock.json');
|
||||
watcher('📦 Linking strapi-plugin-graphql...', 'npm link --no-optional', false);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user