Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit b9eb79a

Browse files
committed
fix: import issues
1 parent 3837ea1 commit b9eb79a

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@
22
"name": "@snapshot-labs/strategies",
33
"version": "0.1.0",
44
"main": "dist/index.js",
5+
"module": "dist/index.js",
56
"types": "dist/index.d.ts",
7+
"typesVersions": {
8+
"*": {
9+
"*": ["dist/*"]
10+
}
11+
},
612
"exports": {
7-
".": "./dist/index.js"
13+
".": {
14+
"types": "./dist/index.d.ts",
15+
"require": "./dist/index.js",
16+
"import": "./dist/index.js",
17+
"default": "./dist/index.js"
18+
},
19+
"./package.json": "./package.json"
820
},
921
"files": [
1022
"dist"

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import strategies from './strategies';
33
import validations from './validations';
44
import utils from './utils';
55

6-
export default {
6+
const snapshot = {
77
strategies,
88
validations,
99
utils
1010
};
11+
12+
export default snapshot;
13+
export { strategies, validations, utils };

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
"moduleResolution": "node",
77
"strict": true,
88
"declaration": true,
9+
"declarationMap": true,
910
"noUnusedLocals": true,
1011
"esModuleInterop": true,
1112
"noImplicitAny": false,
1213
"resolveJsonModule": true,
1314
"allowSyntheticDefaultImports": true,
14-
"skipLibCheck": true
15+
"skipLibCheck": true,
16+
"forceConsistentCasingInFileNames": true
1517
},
1618
"include": ["src", "test"],
17-
"files": ["./src/typings.d.ts"]
19+
"files": ["./src/typings.d.ts"],
20+
"exclude": ["node_modules", "dist", "test"]
1821
}

0 commit comments

Comments
 (0)