eslint / rewrite

Monorepo for the new version of ESLint
Apache License 2.0
65 stars 4 forks source link

chore: do not publish ts files to npm #21

Closed aladdin-add closed 1 month ago

aladdin-add commented 1 month ago

this is to exclude ts files when publishing to npm.

npm:

npm pack -w packages/compat
npm notice 
npm notice 📦  @eslint/compat@1.0.1
npm notice === Tarball Contents === 
npm notice 11.4kB LICENSE            
npm notice 3.5kB  README.md          
npm notice 7.9kB  dist/cjs/index.cjs 
npm notice 776B   dist/cjs/types.d.ts
npm notice 1.6kB  dist/esm/index.d.ts
npm notice 7.8kB  dist/esm/index.js  
npm notice 776B   dist/esm/types.d.ts
npm notice 1.4kB  package.json       
npm notice === Tarball Details === 
npm notice name:          @eslint/compat                          
npm notice version:       1.0.1                                   
npm notice filename:      eslint-compat-1.0.1.tgz                 
npm notice package size:  8.2 kB                                  
npm notice unpacked size: 35.1 kB                                 
npm notice shasum:        71b147013f318a1e0e3daa664aed6f720700a9e3
npm notice integrity:     sha512-5eK8Rx8ZyPWpr[...]Rr192v0UilFXA==
npm notice total files:   8                                       
npm notice 
eslint-compat-1.0.1.tgz

refs: https://github.com/eslint/rewrite/pull/16#issuecomment-2104764938

jsr:

Checking for slow types in the public API...
Simulating publish of @eslint/compat@1.0.1 with files:
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/LICENSE (11.09KB)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/README.md (3.41KB)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/dist/esm/index.d.ts (1.53KB)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/dist/esm/index.js (7.66KB)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/dist/esm/types.d.ts (776B)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/dist/esm/types.ts (982B)
   file:///Users/weiran/repo/github/eslint-rewrite/packages/compat/jsr.json (247B)
Warning Aborting due to --dry-run

Completed in 14s