Skip to content

Use cross-env for OS-independent package scripts #2006

@userzimmermann

Description

@userzimmermann

Initial checklist

Problem

Package-managed documentation development not possible using Windows shells, because VAR=value command syntax not supported:

$ npm run docs-bundle-dev

> docs-bundle-dev
> NODE_ENV=development node --unhandled-rejections=strict website/bundle.js

'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.

Solution

Use https://github.com/kentcdodds/cross-env

Alternatives

Not using Windows for development ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions