Skip to content

Commit

Permalink
fix: modulResolution mode for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-goodwin committed Jan 3, 2024
1 parent 3121fa0 commit 2fcd979
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 20 deletions.
6 changes: 3 additions & 3 deletions packages/@eventual/compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "@eventual/compiler",
"version": "0.57.0",
"type": "module",
"module": "lib/index.js",
"types:": "lib/index.d.ts",
"bin": {
"eventual-bundle": "./bin/eventual-bundle.mjs",
"eventual-infer": "./bin/eventual-infer.mjs"
Expand All @@ -16,9 +19,6 @@
"require": "./bin/eventual-infer.mjs"
}
},
"type": "module",
"module": "./lib/index.js",
"types:": "lib/index.d.ts",
"files": [
"bin",
"lib"
Expand Down
1 change: 1 addition & 0 deletions packages/@eventual/compiler/src/eventual-infer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
type QueueSpec,
type ServiceSpec,
} from "@eventual/core/internal";

import {
CallExpression,
ExportDeclaration,
Expand Down
5 changes: 1 addition & 4 deletions packages/@eventual/compiler/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"module": "NodeNext",
"target": "ESNext",
"moduleResolution": "NodeNext",
"allowJs": true
},
"include": ["src", "test"],
"exclude": ["lib", "node_modules"],
"references": [{ "path": "../core" }]
"references": [{ "path": "../core/tsconfig.json" }]
}
4 changes: 4 additions & 0 deletions packages/@eventual/core-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
"node_modules",
"src"
],
"transformIgnorePatterns": [
"node_modules/",
"node_modules/@eventual/core"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
Expand Down
6 changes: 2 additions & 4 deletions packages/@eventual/core-runtime/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"extends": "../../../tsconfig-base",
"extends": "../../../tsconfig-base.test.json",
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"allowJs": true,
"module": "NodeNext",
"moduleResolution": "NodeNext"
"allowJs": true
},
"include": ["src", "test"],
"exclude": ["lib", "node_modules"],
Expand Down
6 changes: 2 additions & 4 deletions packages/@eventual/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@eventual/core",
"version": "0.57.0",
"type": "module",
"module": "./lib/index.js",
"exports": {
".": {
"import": "./lib/index.js"
Expand All @@ -12,11 +14,7 @@
"import": "./lib/constants.js"
}
},
"type": "module",
"module": "./lib/index.js",
"files": [
"constants",
"internal",
"lib"
],
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@eventual/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rootDir": "src",
"outDir": "lib"
},
"include": ["src", "src/internal/result.ts"],
"include": ["src"],
"exclude": ["lib", "node_modules"],
"references": []
}
4 changes: 1 addition & 3 deletions packages/@eventual/testing/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"allowJs": true,
"module": "NodeNext",
"moduleResolution": "NodeNext"
"allowJs": true
},
"include": ["src", "test"],
"exclude": ["lib", "node_modules"],
Expand Down
5 changes: 4 additions & 1 deletion tsconfig-base.test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "./tsconfig-base.json",
"compilerOptions": {
"typeRoots": ["./node_modules/@types"]
"typeRoots": ["./node_modules/@types"],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler"
}
}

0 comments on commit 2fcd979

Please sign in to comment.