Skip to content

Commit b0a5999

Browse files
committed
Fix the version override on publish
1 parent cfb3d70 commit b0a5999

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/client/auth/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ const setup = (auth: Auth) => {
4242
}
4343

4444
export function getAuth(app?: FirebaseApp) {
45-
console.log('getFirebaseAuth');
4645
const auth = getFirebaseAuth(app);
4746
setup(auth);
4847
return auth;
4948
}
5049

5150
export function initializeAuth(app: FirebaseApp, deps?: Dependencies) {
52-
console.log('initializeFirebaseAuth');
5351
const auth = initializeFirebaseAuth(app, deps);
5452
setup(auth);
5553
return auth;

tools/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ const LOCAL_NODE_MODULES = [
1111
'next/dist/trace',
1212
'nuxt',
1313
'@nuxt/kit/dist/index.mjs',
14-
'webpack'
14+
'webpack',
1515
];
1616

1717
const ES_MODULES = [
18-
['@nuxt/kit', 'dist/index.mjs' ],
18+
['@nuxt/kit', 'dist/index.mjs'],
1919
];
2020

2121
const main = async () => {
2222
await replaceInFile({
2323
files: 'dist/**/*',
2424
from: ES_MODULES.map(([path]) => `Promise.resolve().then(() => __importStar(require('${path}')))`),
25-
to: ES_MODULES.map(([path, file]) => `import('${path}/${file}')`),
25+
to: ES_MODULES.map(([path, file]) => `import('${path}${file ? `/${file}` : ''}')`),
2626
});
2727

2828
await replaceInFile({

tools/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ npm --no-git-tag-version --allow-same-version -f version $OVERRIDE_VERSION
1818

1919
npm run build &&
2020
echo "npm --no-git-tag-version --allow-same-version -f version $OVERRIDE_VERSION &&
21-
sed 's/const FIREBASE_FRAMEWORKS_VERSION =.*/const FIREBASE_FRAMEWORKS_VERSION = \"$OVERRIDE_VERSION\"/' ./dist/index.js &&
21+
sed 's/exports.FIREBASE_FRAMEWORKS_VERSION =.*/exports.FIREBASE_FRAMEWORKS_VERSION = \"$OVERRIDE_VERSION\"/' ./dist/constants.js &&
2222
npm publish . --tag $NPM_TAG" > ./dist/publish.sh &&
2323
chmod +x ./dist/publish.sh

0 commit comments

Comments
 (0)