Skip to content

Commit 334e5d7

Browse files
authored
feat: Publish TypeScript types in Feast UI package (#4551)
1 parent 5a09a7e commit 334e5d7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

ui/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dist"
77
],
88
"main": "./dist/feast-ui.cjs",
9+
"types": "./dist/FeastUI.d.ts",
910
"module": "./dist/feast-ui.module.js",
1011
"peerDependencies": {
1112
"@elastic/datemath": "^5.0.3",
@@ -54,8 +55,8 @@
5455
"scripts": {
5556
"start": "npm run generate-protos && react-scripts start",
5657
"build": "npm run generate-protos && react-scripts build",
57-
"build:lib": "npm run generate-protos && rimraf ./dist && tsc && rollup -c",
58-
"build:lib-dev": "npm run generate-protos && rimraf ./dist && tsc && rollup -c && yalc publish -f",
58+
"build:lib": "npm run generate-protos && rimraf ./dist && tsc --project ./tsconfig.build-lib.json && rollup -c",
59+
"build:lib-dev": "npm run build:lib && yalc publish -f",
5960
"test": "npm run generate-protos && react-scripts test",
6061
"eject": "react-scripts eject",
6162
"generate-protos": "pbjs --no-encode -o src/protos.js -w commonjs -t static-module `find ../protos/feast/ -iname *.proto` && pbts -n protos -o src/protos.d.ts src/protos.js"

ui/tsconfig.build-lib.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationMap": true,
6+
"emitDeclarationOnly": true,
7+
"noEmit": false,
8+
"outDir": "./dist",
9+
"rootDir": "./src"
10+
}
11+
}

0 commit comments

Comments
 (0)