Skip to content

Commit eb3edcb

Browse files
authored
Fix import paths (#448)
1 parent 9295b7b commit eb3edcb

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

package-lock.json

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"tslib": "^2.5.0"
4141
},
4242
"devDependencies": {
43+
"esbuild-fix-imports-plugin": "^1.0.19",
4344
"@croct/eslint-plugin": "^0.7.0",
4445
"@types/jest": "^29.2.3",
4546
"eslint": "^8.57.0",
@@ -57,6 +58,8 @@
5758
"**/*.cjs",
5859
"**/*.mjs",
5960
"**/*.ts",
61+
"**/*.mts",
62+
"**/*.cts",
6063
"**/*.map"
6164
],
6265
"browserslist": [

src/facade/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export {EvaluatorFacade, ContextFactory, MinimalContextFactory, TabContextFactory} from './evaluatorFacade';
1+
export {EvaluatorFacade, type ContextFactory, MinimalContextFactory, TabContextFactory} from './evaluatorFacade';
22
export {SdkFacade} from './sdkFacade';
33
export {SessionFacade} from './sessionFacade';
44
export {SessionPatch} from './sessionPatch';

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import {VERSION} from './constants';
22
import {Sdk, Configuration} from './sdk';
33

4-
export {Sdk, Configuration, VERSION};
4+
export {Sdk, type Configuration, VERSION};

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"noUnusedParameters": true,
1515
"strictNullChecks": true,
1616
"removeComments": false,
17+
"isolatedModules": true,
1718
"outDir": "build",
1819
"downlevelIteration": true,
1920
"declaration": true,

tsup.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import {defineConfig} from 'tsup';
2+
import {fixImportsPlugin} from 'esbuild-fix-imports-plugin';
23

34
export default defineConfig({
5+
esbuildPlugins: [fixImportsPlugin()],
46
entry: ['src/**/*.ts'],
57
dts: true,
68
clean: true,
9+
sourcemap: false,
710
outDir: 'build',
811
splitting: false,
912
bundle: false,

0 commit comments

Comments
 (0)