Skip to content

Commit c549105

Browse files
committed
only prod
1 parent 9a9128a commit c549105

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- name: Test
9292
run: |
9393
npm i -g firebase-tools
94-
npm i --prefix $(npm root -g)/firebase-tools --ignore-scripts --force --save .
94+
npm i --only production --prefix $(npm root -g)/firebase-tools --ignore-scripts --force --save . || true
9595
npm run test:${{ matrix.framework }}
9696
env:
9797
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const prepare = async (targetNames: string[], context: any, options: any)
121121
const firebaseAwareness = !!firebaseProjectConfig;
122122

123123
packageJson.main = 'server.js';
124+
delete packageJson.devDependencies;
124125
packageJson.dependencies ||= {};
125126
packageJson.dependencies['firebase-frameworks'] = FIREBASE_FRAMEWORKS_VERSION;
126127
// TODO test these with semver, error if already set out of range

0 commit comments

Comments
 (0)