Skip to content

Commit 6031e71

Browse files
committed
Fix tsconfig problems
1 parent a7509dc commit 6031e71

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

actions/gls-action/src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ vi.mock("@code0-tech/hercules", () => ({
5151
}));
5252

5353
import {
54-
ActionConfigurationDefinition, createSdk,
54+
createSdk,
5555
HerculesActionConfigurationDefinition, HerculesDataType, HerculesFlowType, HerculesRegisterFunctionParameter
5656
} from "@code0-tech/hercules";
5757

@@ -113,7 +113,7 @@ describe("Hercules SDK mock", () => {
113113
describe("executes index.ts", async () => {
114114
it('should be valid', async () => {
115115
vi.resetModules(); // clear module cache
116-
await import("./index.ts"); // now it runs
116+
await import("./index"); // now it runs
117117

118118
state.dataTypes?.forEach((dataType: HerculesDataType) => {
119119
expect(dataType.identifier.startsWith("GLS_"), `${dataType.identifier}: Identifier should start with GLS_`).toBeTruthy()

actions/gls-action/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist"
5+
},
6+
"include": ["src"],
7+
"exclude": ["node_modules", "dist"]
8+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "ESNext",
5-
"moduleResolution": "bundler",
4+
"module": "commonjs",
5+
"esModuleInterop": true,
66
"declaration": true,
77
"outDir": "dist",
88
"strict": false,
99
"skipLibCheck": true,
10-
"allowImportingTsExtensions": true
10+
"allowImportingTsExtensions": false
1111
}
1212
}

0 commit comments

Comments
 (0)