Skip to content

Commit 0eec7ee

Browse files
committed
fix: build failure due to es module config
- Modify package.json scripts and dependencies - Update index.ts for TypeScript compatibility
1 parent 99c9bcf commit 0eec7ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ParseServer } from 'parse-server';
66
import path from 'path';
77
import http from 'http';
88
import { config } from './config.js';
9-
const __dirname = path.resolve();
9+
1010
const app = express();
1111

1212
// Serve static assets from the /public folder

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"lint": "eslint --cache ./cloud && eslint --cache index.ts && eslint --cache ./spec",
1414
"lint-fix": "eslint --cache --fix ./cloud && eslint --cache --fix index.ts && eslint --cache --fix ./spec",
1515
"prettier": "prettier --write '{cloud,spec}/{**/*,*}.{ts,js,mjs,cjs}' index.ts",
16-
"start": "node dist/index.ts",
16+
"start": "node dist/index.js",
1717
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=7.0.1} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} mongodb-runner start -t ${MONGODB_TOPOLOGY} --version ${MONGODB_VERSION} -- --port 27017",
1818
"test": "TESTING=true jasmine",
1919
"posttest": "mongodb-runner stop --all",
@@ -26,7 +26,6 @@
2626
"parse": "6.1.1",
2727
"parse-server": "8.1.0"
2828
},
29-
"type": "module",
3029
"devDependencies": {
3130
"@babel/eslint-parser": "7.27.0",
3231
"@eslint/js": "^9.0.0",

0 commit comments

Comments
 (0)