Skip to content

[example] find all environment variable usage in the project #867

@HerringtonDarkholme

Description

@HerringtonDarkholme

turbopack requires listing all environment variable in turbo.json

this command can extract all env var usages

ast-grep --pattern 'process.env.$ENV' --json | jq '.[].metaVariables.single.ENV.text' | sort | uniq

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions