np
np copied to clipboard
contents does not work when defined in config file
Description
np --contents=./lib
and np
with contents: './lib'
in .np-config.js
have different outcomes.
Steps to reproduce
- publish a package with
np --contents=./lib
- publish a package with
np
havingmodule.exports = { contents: './lib' }
in.np-config.js
Expected behavior
The outcomes of 1 and 2 should be the same, but they are not. The contents
property in a config file seems to be ignored. Passing it as an argument to np
has the expected outcome.
Environment
np - 7.5.0 Node.js - 16.3.0 npm - 7.18.1 Git - 2.25.1 OS - Ubuntu 20.04 LTS
I think local .np-config.js
files are skipped entirely.
I think local
.np-config.js
files are skipped entirely.
Is json extension are not?
@sindresorhus will you able to fix this?
I think that works but why am i getting this?