Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 481f49d

Browse files
authored
Merge pull request #407 from icmaa/bugfix/build-path-with-src
Wrong paths for production build
2 parents 6c6515e + d2109d5 commit 481f49d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Fixed
1919
- add es7 support for map url module and fixed default index for es config - @gibkigonzo
20+
- Add correct paths for production build - @cewald (#407)
2021

2122
## [1.11.0] - 2019.12.20
2223

ecosystem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"apps": [
33
{
44
"name": "api",
5-
"script": "./dist/index.js",
5+
"script": "./dist/src/index.js",
66
"log_date_format": "YYYY-MM-DD HH:mm:ss",
77
"ignore_watch": ["node_modules"]
88
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"dev:inspect": "nodemon --exec \"node --inspect -r ts-node/register src\"",
1313
"build": "npm run -s build:code && npm run -s build:copy:graphql && npm run -s build:copy:schema",
1414
"build:code": "tsc --build",
15-
"build:copy:graphql": "cpx src/**/*.graphqls dist",
16-
"build:copy:schema": "cpx 'src/**/*.schema*.json' dist",
15+
"build:copy:graphql": "cpx src/**/*.graphqls dist/src",
16+
"build:copy:schema": "cpx 'src/**/*.schema*.json' dist/src",
1717
"start": "pm2 start ecosystem.json $PM2_ARGS",
1818
"db": "node scripts/db.js",
1919
"db7": "node scripts/db7.js",

0 commit comments

Comments
 (0)