|
@@ -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')
|