Skip to content

Commit

Permalink
fix(cloud-function): use ts-node via NODE_OPTIONS (#10873)
Browse files Browse the repository at this point in the history
* fix(cloud-function): use ts-node via NODE_OPTIONS

* fix(cloud-function): use cross-env to set NODE_OPTIONS
  • Loading branch information
caugner committed Apr 9, 2024
1 parent eeb3784 commit 512ebb0
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 2 deletions.
78 changes: 78 additions & 0 deletions cloud-function/package-lock.json

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

5 changes: 3 additions & 2 deletions cloud-function/package.json
Expand Up @@ -9,11 +9,11 @@
"main": "src/index.js",
"scripts": {
"build": "tsc -b",
"build-redirects": "ts-node src/build-redirects.ts",
"build-redirects": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node src/build-redirects.ts",
"copy-internal": "rm -rf ./src/internal && cp -R ../libs ./src/internal",
"gcp-build": "npm run build",
"prepare": "([ ! -e ../libs ] || npm run copy-internal)",
"proxy": "ts-node src/proxy.ts",
"proxy": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node src/proxy.ts",
"server": "npm run build && functions-framework --target=mdnHandler",
"server:watch": "nodemon --exec npm run server",
"start": "nf start"
Expand Down Expand Up @@ -45,6 +45,7 @@
"@types/accept-language-parser": "^1.5.3",
"@types/http-proxy": "^1.17.10",
"@types/http-server": "^0.12.1",
"cross-env": "^7.0.3",
"http-proxy": "^1.18.1",
"http-server": "^14.1.1",
"nodemon": "^2.0.22",
Expand Down

0 comments on commit 512ebb0

Please sign in to comment.