Skip to content

Commit dee7c05

Browse files
authored
fix: Fixed autocompletion (invertase#143)
1 parent 2ae2aab commit dee7c05

File tree

5 files changed

+33
-34
lines changed

5 files changed

+33
-34
lines changed

dataconnect-sdk/js/default-connector/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"./package.json": "./package.json"
2121
},
2222
"peerDependencies": {
23-
"firebase": "^11.1.0"
23+
"firebase": "^10.14.0 || ^11.0.0"
2424
}
2525
}

packages/react/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"types": "./dist/index.d.ts"
1414
},
1515
"./auth": {
16-
"import": "./dist/auth.js",
17-
"types": "./dist/auth.d.ts"
16+
"import": "./dist/auth/index.js",
17+
"types": "./dist/auth/index.d.ts"
1818
},
1919
"./firestore": {
20-
"import": "./dist/firestore.js",
21-
"types": "./dist/firestore.d.ts"
20+
"import": "./dist/firestore/index.js",
21+
"types": "./dist/firestore/index.d.ts"
2222
},
2323
"./data-connect": {
24-
"import": "./dist/dataconnect.js",
25-
"types": "./dist/dataconnect.d.ts"
24+
"import": "./dist/data-connect/index.js",
25+
"types": "./dist/data-connect/index.d.ts"
2626
}
2727
},
2828
"author": {

packages/react/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"module": "esnext",
55
"moduleResolution": "node",
66
"declaration": true,
7-
"outDir": "./dist",
87
"jsx": "react",
98
"strict": true,
109
"esModuleInterop": true,

packages/react/tsup.config.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import { defineConfig } from "tsup";
22

3+
const supportedPackages = ['data-connect', 'firestore', 'auth'];
34
export default defineConfig({
4-
entry: {
5-
index: "src/index.ts",
6-
auth: "src/auth/index.ts",
7-
firestore: "src/firestore/index.ts",
8-
dataconnect: "src/data-connect/index.ts",
9-
},
5+
entry: [`src/(${supportedPackages.join('|')})/index.ts`, 'src/index.ts'],
106
format: ["esm"],
117
dts: true, // generates .d.ts files
128
outDir: "dist",
9+
esbuildOptions(options, context) {
10+
options.outbase = './src';
11+
},
1312
// splitting: false, // Disable code splitting to generate distinct files
1413
clean: true,
1514
});

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)