https://github.com/brandonroberts/nx-cache-scope
An example reproducing a cache restoration issue
https://github.com/brandonroberts/nx-cache-scope
Last synced: 3 months ago
JSON representation
An example reproducing a cache restoration issue
- Host: GitHub
- URL: https://github.com/brandonroberts/nx-cache-scope
- Owner: brandonroberts
- Created: 2024-12-06T19:39:08.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-06T19:39:12.000Z (6 months ago)
- Last Synced: 2025-03-02T09:54:03.846Z (3 months ago)
- Language: TypeScript
- Size: 192 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NxCacheScope
This reproduces an issue where an app with an npm scope is not restored from cache when output to `node_modules`.
## Steps
1. npm install
2. Run `npx nx build my-app`
3. Check `node_modules/my-app`
4. Delete `node_modules/my-app` folder
5. Run `npx nx build my-app`
6. Note that `node_modules/my-app` is restored
7. Run `npx nx build my-scoped-app`
8. Check `node_modules/@my-scoped-app`
9. Delete `node_modules/@my-scoped-app` folder
10. Run `npx nx build my-scoped-app`
11. Note that `node_modules/@my-scoped-app` is not restored even though the cache output says it was.