Skip to content

functions predeploy/postdeploy do not work when contains = #5339

@aaharu

Description

@aaharu

[REQUIRED] Environment info

firebase-tools: 11.18.0

Platform: macOS

[REQUIRED] Test case

// firebase.json
{
  "functions": {
    "predeploy": "npm run build --workspace=packages/foobar",  // NG
    // "predeploy": "npm run build --workspace packages/foobar", // OK
    // "predeploy": "npm run build --workspace\\=packages/foobar", // OK
    // "predeploy": "npm run build -w packages/foobar", // OK
    // "predeploy": "npm --prefix \"$RESOURCE_DIR\" run build", // OK
    "source": "packages/foobar"
  }
}
$ firebase deploy --only functions

=== Deploying to '---'...

i  deploying functions
Running command: npm run build --workspace=packages/foobar
✔  functions: Finished running predeploy script.

It outputs Finished running predeploy script., but the predeploy was not running.
This behavior seems to be caused by cross-env-shell.

[REQUIRED] Steps to reproduce

Add predeploy script that contains = to firebase.json.

[REQUIRED] Expected behavior

The predeploy and postdeploy scripts have finished running.

[REQUIRED] Actual behavior

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions