Skip to content

[?BUG] package.json -> process.env - Array is smashed, while object can be deep #37

@askirmas

Description

@askirmas

What is the purpose of this decision?

npm_package_config_nested_object_is_included: 'true',
npm_package_engines: 'array\n\nof\n\nstrings',

else if (val && !Array.isArray(val) && typeof val === 'object')
packageEnvs(env, val, `${prefix}${key}_`)
else
env[`${prefix}${key}`] = envVal(val)

Related: npm/cli#3775

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