Skip to content

Commit 03aee06

Browse files
authored
Minor build fixes (#4317)
* always build app exp because storage and database will need it * transform imports from @firebase/app-exp to @firebase/app
1 parent 3e63d39 commit 03aee06

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/test-changed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
cp config/ci.config.json config/project.json
2929
yarn
3030
- name: build
31-
run: yarn build:changed core
31+
run: yarn build:changed core --buildAppExp
3232
- name: Run tests on changed packages
3333
run: xvfb-run yarn test:changed core

packages/database/rollup.config.exp.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import json from '@rollup/plugin-json';
1919
import typescriptPlugin from 'rollup-plugin-typescript2';
2020
import typescript from 'typescript';
2121
import path from 'path';
22+
import { importPathTransformer } from '../../scripts/exp/ts-transform-import-path';
2223

2324
import pkg from './exp/package.json';
2425

@@ -31,7 +32,8 @@ const deps = Object.keys(
3132
*/
3233
const es5BuildPlugins = [
3334
typescriptPlugin({
34-
typescript
35+
typescript,
36+
transformers: [importPathTransformer]
3537
}),
3638
json()
3739
];
@@ -71,7 +73,8 @@ const es2017BuildPlugins = [
7173
compilerOptions: {
7274
target: 'es2017'
7375
}
74-
}
76+
},
77+
transformers: [importPathTransformer]
7578
}),
7679
json({ preferConst: true })
7780
];

0 commit comments

Comments
 (0)