mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
meta: exclude tsconfig files from npm bundles (#4916)
This commit is contained in:
parent
6b4f5b68f7
commit
d85caf6c51
13 changed files with 22 additions and 1 deletions
1
packages/@uppy/audio/.npmignore
Normal file
1
packages/@uppy/audio/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/companion-client/.npmignore
Normal file
1
packages/@uppy/companion-client/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/compressor/.npmignore
Normal file
1
packages/@uppy/compressor/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/core/.npmignore
Normal file
1
packages/@uppy/core/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/drop-target/.npmignore
Normal file
1
packages/@uppy/drop-target/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/image-editor/.npmignore
Normal file
1
packages/@uppy/image-editor/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/locales/.npmignore
Normal file
1
packages/@uppy/locales/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/status-bar/.npmignore
Normal file
1
packages/@uppy/status-bar/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/store-default/.npmignore
Normal file
1
packages/@uppy/store-default/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/tus/.npmignore
Normal file
1
packages/@uppy/tus/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/utils/.npmignore
Normal file
1
packages/@uppy/utils/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
1
packages/@uppy/xhr-upload/.npmignore
Normal file
1
packages/@uppy/xhr-upload/.npmignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
tsconfig.*
|
||||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue