diff --git a/packages/realm-tools/package.json b/packages/realm-tools/package.json index a5a084c1c6..e8318ec794 100644 --- a/packages/realm-tools/package.json +++ b/packages/realm-tools/package.json @@ -17,7 +17,8 @@ "build": { "command": "tsc -p tsconfig.build.json", "dependencies": [ - "../realm:build:ts" + "../realm:build:ts", + "../realm:build:node" ], "files": [ "tsconfig.build.json", diff --git a/packages/realm-tools/tsconfig.build.json b/packages/realm-tools/tsconfig.build.json index 3885162079..d6a9f2de7c 100644 --- a/packages/realm-tools/tsconfig.build.json +++ b/packages/realm-tools/tsconfig.build.json @@ -1,8 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "target": "es2018", - "module": "commonjs", "noEmit": false, "declaration": true, "outDir": "./dist", diff --git a/packages/realm-tools/tsconfig.json b/packages/realm-tools/tsconfig.json index d5ba6366d4..952ace6a94 100644 --- a/packages/realm-tools/tsconfig.json +++ b/packages/realm-tools/tsconfig.json @@ -2,11 +2,12 @@ "extends": "../../tsconfig.json", "compilerOptions": { "target": "es2018", - "moduleResolution": "node", + "module": "Node16", + "moduleResolution": "Node16", "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [ - "node", + "node" ], "lib": [ "es2019"