diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2021-06-01 18:28:46 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-06-01 20:40:33 +0300 |
commit | fb630b5a9af86c71602803297634ec291eeedee0 (patch) | |
tree | 4d87744623052ef7cb7c8c27b25400be338669c6 /scripts | |
parent | 73633e566661f38d78a61faa1ab43919dc5696e6 (diff) |
chore: manage docs as a workspace
- Add `./docs` as a workspace
- Reinstate `./docs/package.json` to manage docs deps
- Ignore `docs/content` markdown source folder from published tarball
- Tweaked `make docs` to use `npm run` to run docs build step
- Tweaked "bundle and gitignore" script to ignore symlinks in nm folder
- Removed outdated `package.json` comment
Relates to: https://github.com/npm/statusboard/issues/362
PR-URL: https://github.com/npm/cli/pull/3342
Credit: @ruyadorno
Close: #3342
Reviewed-by: @wraithgar
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bundle-and-gitignore-deps.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bundle-and-gitignore-deps.js b/scripts/bundle-and-gitignore-deps.js index 691deb916..b15720c03 100644 --- a/scripts/bundle-and-gitignore-deps.js +++ b/scripts/bundle-and-gitignore-deps.js @@ -10,7 +10,7 @@ const shouldIgnore = [] arb.loadVirtual().then(tree => { for (const [name, node] of tree.children.entries()) { - if (node.dev) { + if (node.dev || node.isLink) { console.error('ignore', node.name) shouldIgnore.push(node.name) } else if (tree.edgesOut.has(node.name)) { |