meta: exclude tsconfig files from npm bundles (#4916)

This commit is contained in:
Antoine du Hamel 2024-02-13 23:21:08 +01:00 committed by GitHub
parent 6b4f5b68f7
commit d85caf6c51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -0,0 +1 @@
tsconfig.*

View file

@ -5,7 +5,14 @@
* TS source. It will rename the files, update the imports, and add a `tsconfig.json`.
*/
import { opendir, readFile, open, writeFile, rm } from 'node:fs/promises'
import {
appendFile,
opendir,
readFile,
open,
writeFile,
rm,
} from 'node:fs/promises'
import { createRequire } from 'node:module'
import { argv } from 'node:process'
import { basename, extname, join } from 'node:path'
@ -149,4 +156,6 @@ await writeFile(
)}\n`,
)
await appendFile(new URL('./.npmignore', packageRoot), `\ntsconfig.*\n`)
console.log('Done')