Skip to content

Commit 3f479c9

Browse files
add typings and module declaration (FF-863) (#10)
* add typings and module declaration (FF-863) * typings is in dist directory; no new file
1 parent e43426a commit 3f479c9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@
66
"files": [
77
"/dist"
88
],
9-
"typings": "dist/js-client-sdk-common.d.ts",
9+
"types": "./dist/index.d.ts",
10+
"exports": {
11+
".": {
12+
"types": "./dist/index.d.ts",
13+
"default": "./dist/index.js"
14+
}
15+
},
1016
"scripts": {
1117
"lint": "eslint '**/*.{ts,tsx}' --cache",
1218
"lint:fix": "eslint --fix '**/*.{ts,tsx}' --cache",
1319
"lint:fix-pre-commit": "eslint -c .eslintrc.pre-commit.js --fix '**/*.{ts,tsx}' --no-eslintrc --cache",
1420
"prepare": "make prepare",
15-
"pre-commit": "lint-staged && tsc && yarn docs",
21+
"pre-commit": "lint-staged && tsc",
1622
"typecheck": "tsc",
1723
"test": "yarn test:unit",
18-
"test:unit": "NODE_ENV=test jest '.*\\.spec\\.ts'",
19-
"docs": "api-documenter markdown -i ./temp -o ./docs"
24+
"test:unit": "NODE_ENV=test jest '.*\\.spec\\.ts'"
2025
},
2126
"jsdelivr": "dist/eppo-sdk.js",
2227
"repository": {

0 commit comments

Comments
 (0)