Skip to content

Commit df97a1d

Browse files
author
Alex Patterson
committed
correctly copy package for functions into dist
1 parent 60f312f commit df97a1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"engines": {
1313
"node": "8"
1414
},
15-
"main": "lib/index.js",
15+
"main": "index.js",
1616
"dependencies": {
1717
"express": "^4.17.0",
1818
"cors": "^2.8.5",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"build:functions:lint": "cd functions && npm run lint && npm run build",
4848
"build:public": "cpx \"static/**/*.*\" dist/public/static && cpx \"dist/functions/_next/static/**/*.*\" dist/public/_next/static",
4949
"clean": "rimraf dist && rimraf functions/lib && rimraf .next",
50-
"copy:deps": "cpx \"*{package.json,package-lock.json}\" dist/functions && cpx \"functions/node_modules/**/*.*\" dist/functions/node_modules && cpx \".next/serverless/**/*.*\" dist/functions/_next/serverless/ && cpx \".next/static/**/*.*\" dist/public/_next/static/",
50+
"copy:deps": "cpx \"functions/*{package.json,package-lock.json}\" dist/functions && cpx \"functions/node_modules/**/*.*\" dist/functions/node_modules && cpx \".next/serverless/**/*.*\" dist/functions/_next/serverless/ && cpx \".next/static/**/*.*\" dist/public/_next/static/",
5151
"firebase:build": "npm install && npm run clean && npm run build && npm run build:functions && npm run build:public && npm run copy:deps",
5252
"firebase:serve": "npm run firebase:build && firebase serve",
5353
"firebase:deploy": "npm run firebase:build && firebase deploy"

0 commit comments

Comments
 (0)