Skip to content

Commit d7168ba

Browse files
authored
Merge pull request #4 from tadata-org/fix/import-error
better import path resolution
2 parents b00e123 + ed5ea5b commit d7168ba

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
docs
55
node_modules
66
coverage
7+
repomix-output.xml

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
'^.+\\.tsx?$': [
1212
'ts-jest',
1313
{
14-
tsconfig: 'tsconfig.json',
14+
tsconfig: 'tsconfig.cjs.json',
1515
isolatedModules: true // Speeds up tests & ignores TS errors
1616
}
1717
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tadata-js/sdk",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Tadata Node SDK",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

test/integration/deployments.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { StatusCodes } from 'http-status-codes';
2-
import * as nock from 'nock';
2+
import nock from 'nock';
33
import { v4 as uuidv4 } from 'uuid';
44
import { OpenApiSource, SpecInvalidError, Tadata } from '../../src';
55
import { ErrorCode } from '../../src/http/schemas';

tsconfig.esm.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "ESNext",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
56
"outDir": "dist/esm",
6-
"declarationDir": "dist/types"
7+
"declarationDir": "dist/types",
8+
"emitDeclarationOnly": false
79
}
810
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lib": ["es2020"],
55
"strict": true,
66
"declaration": true,
7-
"esModuleInterop": false,
7+
"esModuleInterop": true,
88
"skipLibCheck": true,
99
"forceConsistentCasingInFileNames": true,
1010
"moduleResolution": "node",

0 commit comments

Comments
 (0)