Tooling concepts
Inspect package contents before distribution
npm pack creates or previews a package archive. Inspecting what would be distributed helps avoid missing build outputs and accidentally including private material. Do not treat a .gitignore file as a guarantee that sensitive files cannot enter a package. Review the actual archive. Example type: bash. Context: npm-lab. Expected observation: Planned files include index.js and package.json, not internal.js.. See local fixture evidence.
Formal Syntax & Structure
javascript syntaxjavascript
npm pack --workspace=@lesson/units --dry-run --json --ignore-scriptsWorking Example
Example Snippetjavascript
npm pack --workspace=@lesson/units --dry-run --json --ignore-scripts