Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 25a5b89

Browse files
author
Sachin Maheshwari
committed
es6 i.e import syntax fixing
1 parent b36f68d commit 25a5b89

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ COPY . /topcoder-x-ui
88
WORKDIR /topcoder-x-ui
99

1010
# Install the dependencies from package.json
11+
RUN npm install esm
1112
RUN npm install
1213
RUN npm run build
1314
#RUN npm test
1415

15-
CMD npm start
16+
CMD npm start

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"npm": "5"
1212
},
1313
"scripts": {
14-
"start": "node src/app.js",
14+
"start": "node -r esm src/app.js",
1515
"serve": "./node_modules/.bin/concurrently \"npm run start:be\" \"npm run start:fe\"",
1616
"start:be": "nodemon src/app.js ",
1717
"start:fe": "gulp build:watch",

0 commit comments

Comments
 (0)