Skip to content

Commit

Permalink
fix: Fixed autocompletion (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesht authored Jan 13, 2025
1 parent 2ae2aab commit dee7c05
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 34 deletions.
2 changes: 1 addition & 1 deletion dataconnect-sdk/js/default-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"firebase": "^11.1.0"
"firebase": "^10.14.0 || ^11.0.0"
}
}
12 changes: 6 additions & 6 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
"types": "./dist/index.d.ts"
},
"./auth": {
"import": "./dist/auth.js",
"types": "./dist/auth.d.ts"
"import": "./dist/auth/index.js",
"types": "./dist/auth/index.d.ts"
},
"./firestore": {
"import": "./dist/firestore.js",
"types": "./dist/firestore.d.ts"
"import": "./dist/firestore/index.js",
"types": "./dist/firestore/index.d.ts"
},
"./data-connect": {
"import": "./dist/dataconnect.js",
"types": "./dist/dataconnect.d.ts"
"import": "./dist/data-connect/index.js",
"types": "./dist/data-connect/index.d.ts"
}
},
"author": {
Expand Down
1 change: 0 additions & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"outDir": "./dist",
"jsx": "react",
"strict": true,
"esModuleInterop": true,
Expand Down
11 changes: 5 additions & 6 deletions packages/react/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { defineConfig } from "tsup";

const supportedPackages = ['data-connect', 'firestore', 'auth'];
export default defineConfig({
entry: {
index: "src/index.ts",
auth: "src/auth/index.ts",
firestore: "src/firestore/index.ts",
dataconnect: "src/data-connect/index.ts",
},
entry: [`src/(${supportedPackages.join('|')})/index.ts`, 'src/index.ts'],
format: ["esm"],
dts: true, // generates .d.ts files
outDir: "dist",
esbuildOptions(options, context) {
options.outbase = './src';
},
// splitting: false, // Disable code splitting to generate distinct files
clean: true,
});
41 changes: 21 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dee7c05

Please sign in to comment.