File tree Expand file tree Collapse file tree
js_npm/rest/realworld-app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ module.exports = {
55 "username" : "test" ,
66 "password" : "test" ,
77 "database" : "test" ,
8- "entities" : [ process . env . NODE_ENV == 'production' ? __dirname + '/src/ build/**/**.entity.js' : ( process . env . NODE_ENV == 'em_production' ? __dirname + '/instrumented/src/**/**.entity.js' :__dirname + '/src /src/**/**.entity.ts' ) ] ,
8+ "entities" : [ process . env . NODE_ENV == 'production' ? __dirname + '/build/src/ **/**.entity.js' : ( process . env . NODE_ENV == 'em_production' ? __dirname + '/instrumented/src/**/**.entity.js' :__dirname + '/build /src/**/**.entity.ts' ) ] ,
99 "migrationsTableName" : "migrations" ,
10- "migrations" : [ process . env . NODE_ENV == 'em_production' ? "instrumented/src/database/migration/*.js" : "src/database/migration/*.js" ] ,
10+ "migrations" : [ process . env . NODE_ENV == 'em_production' ? "instrumented/src/database/migration/*.js" : "build/ src/database/migration/*.js" ] ,
1111 "cli" : {
12- "migrationsDir" : process . env . NODE_ENV == 'em_production' ? "instrumented/src/database/migration" : "src/database/migration"
12+ "migrationsDir" : process . env . NODE_ENV == 'em_production' ? "instrumented/src/database/migration" : "build/ src/database/migration"
1313 } ,
1414 "synchronize" : true
1515}
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "build" : " rimraf build && tsc" ,
88 "em:run" : " cross-env NODE_ENV=em_production node instrumented/em/em-main.js" ,
9- "em:build" : " npm run build && rimraf instrumented & babel build -d instrumented/src --copy-files && babel em -d instrumented/em --copy-files && babel swagger.json -d instrumented --copy-files && babel em -d build/em --copy-files" ,
9+ "em:build" : " npm run build && rimraf instrumented & babel build -d instrumented --copy-files && babel em -d instrumented/em --copy-files && babel swagger.json -d instrumented --copy-files && babel em -d build/em --copy-files" ,
1010 "start" : " node src/index.js" ,
1111 "start:watch" : " nodemon" ,
1212 "prestart:prod" : " tsc" ,
7272 },
7373 "jest" : {
7474 "testEnvironment" : " node" ,
75- "testRegex" : " [em|tests]/.*Test\\ .(js|jsx|ts|tsx)$" ,
75+ "testRegex" : " [build/ em|tests]/.*Test\\ .(js|jsx|ts|tsx)$" ,
7676 "collectCoverageFrom" : [
7777 " src/**/*.(js|jsx|ts|tsx)"
7878 ],
You can’t perform that action at this time.
0 commit comments