mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
Enhance build command and fix generated service for Bookshelf
This commit is contained in:
parent
2a5278b461
commit
59391c7a00
@ -10,7 +10,7 @@
|
||||
"analyze:clean": "rimraf stats.json",
|
||||
"preanalyze": "npm run analyze:clean",
|
||||
"analyze": "node node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
|
||||
"build": "cross-env NODE_ENV=production IS_ADMIN=true webpack --config node_modules/strapi-helper-plugin/lib/internals/webpack/webpack.prod.babel.js --color -p --progress",
|
||||
"build": "npm run build:dll && cross-env NODE_ENV=production IS_ADMIN=true webpack --config node_modules/strapi-helper-plugin/lib/internals/webpack/webpack.prod.babel.js --color -p --progress",
|
||||
"build:dll": "cross-env NODE_ENV=production webpack --config node_modules/strapi-helper-plugin/lib/internals/webpack/webpack.dll.babel.js --color -p --progress",
|
||||
"build:clean": "rimraf admin/build",
|
||||
"start": "cross-env NODE_ENV=development PORT=4000 IS_ADMIN=true node node_modules/strapi-helper-plugin/lib/server",
|
||||
@ -66,4 +66,4 @@
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ module.exports = {
|
||||
* @return {Object}
|
||||
*/
|
||||
|
||||
editRelation: (params, values) => {
|
||||
editRelation: async (params, values) => {
|
||||
const relation = _.find(strapi.models.<%= id %>.associations, {alias: params.relation});
|
||||
|
||||
if (!_.isEmpty(relation) && _.isArray(values)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user