https://github.com/leon/bug-nx-package-json-imports
Bug report for generatePackageJson not working as expected
https://github.com/leon/bug-nx-package-json-imports
Last synced: 12 months ago
JSON representation
Bug report for generatePackageJson not working as expected
- Host: GitHub
- URL: https://github.com/leon/bug-nx-package-json-imports
- Owner: leon
- Created: 2024-05-03T08:14:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T12:18:19.000Z (about 2 years ago)
- Last Synced: 2025-05-18T19:08:41.919Z (about 1 year ago)
- Language: TypeScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BugGeneratePackageJson
https://github.com/nrwl/nx/issues/23163
In a node app where i use `date-fns` I only import them using this type of imports.
```ts
import { addDays } from 'date-fns/addDays';
import { getWeek } from 'date-fns/getWeek';
import { isValid } from 'date-fns/isValid';
```
```
pnpm build
```
/dist/package.json
This does not generate a package.json that contains date-fns as a dependency