Skip to content

jasonkuhrt-archive/explore-foreign-file-node-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploration of Forign File Retention in node_modules

On Package Add

yarn

Yarn wipes all foreign content becuase packages are rebuilt. This behaviour falls under an open yarn issue. Age of the issue suggests low priority.

  1. Run yarn run setup:yarn to ensure clean slate
  2. Observe state change by running yarn run check (foreign content)
  3. Run yarn add fp-ts
  4. Observe state by running yarn run check (no foreign content)

npm

NPM retains the forign file in existing package.

  1. Run npm run setup:npm to ensure clean slate
  2. Observe state change by running npm run check (foreign content)
  3. Run npm install fp-ts
  4. Observe state by running npm run check (foreign file only)

On Package Upgrade

yarn

Yarn wipes all foreign content becuase packages are rebuilt. This behaviour falls under an open yarn issue. Age of the issue suggests low priority.

  1. Run yarn run setup:yarn to ensure clean slate
  2. Observe state change by running yarn run check (foreign content)
  3. Run yarn install fp-ts@2.0.4
  4. Observe outdated package state by running yarn outdated
  5. Run yarn upgrade
  6. Observe state by running yarn run check (foreign content)

npm

NPM retains the forign file in existing package.

  1. Run npm run setup:npm to ensure clean slate
  2. Observe state change by running npm run check (foreign content)
  3. Run npm install fp-ts@2.0.4
  4. Observe outdated package state by running npm outdated
  5. Run npm upgrade
  6. Observe state by running npm run check (foreign content)

On No-Op Upgrade

yarn

Yarn wipes all foreign content becuase packages are rebuilt. This behaviour falls under an open yarn issue. Age of the issue suggests low priority.

  1. Run yarn run setup:yarn to ensure clean slate
  2. Observe state change by running yarn run check (foreign content)
  3. Run yarn upgrade
  4. Observe state by running yarn run check (no forign content)

npm

NPM retains all foreign content.

  1. Run npm run setup:npm to ensure clean slate
  2. Observe state change by running npm run check (foreign content)
  3. Run npm upgrade
  4. Observe state by running npm run check (foreign content)

On Prune

yarn

Yarn retains all foreign content.

  1. Run yarn run setup:yarn to ensure clean slate
  2. Observe state change by running yarn run check (foreign content)
  3. Run yarn install
  4. Observe state change by running yarn run check (foreign content)

npm

NPM retains the foreign file in existing package.

  1. Run npm run setup:npm to ensure clean slate
  2. Observe state change by running npm run check (foreign content)
  3. Run npm prune
  4. Observe state change by running npm run check (foreign file only)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published