File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { execSync } from 'child_process';
4
4
import { resolve } from 'path' ;
5
5
import { performance } from 'perf_hooks' ;
6
6
7
- const { emptyDir, copy , readJson, writeJson } = fse ;
7
+ const { emptyDir, readJson } = fse ;
8
8
9
9
const startTime = performance . now ( ) ;
10
10
const pkg = await readJson ( './package.json' ) ;
@@ -34,17 +34,6 @@ esbuild
34
34
// Build declaration files with TSC since they aren't built by esbuild.
35
35
execSync ( 'npx tsc' ) ;
36
36
37
- const declarationsDir = resolve ( distDir , 'src' ) ;
38
-
39
- // Move all declaration files to the root dist folder. Also remove unwanted files and folder.
40
- // await remove(resolve(declarationsDir, 'cli.d.ts'));
41
- await copy ( declarationsDir , distDir ) ;
42
- // await remove(declarationsDir);
43
-
44
- await writeJson ( resolve ( distDir , 'package.json' ) , distPackage , {
45
- spaces : 2 ,
46
- } ) ;
47
-
48
37
const buildTime = ( ( performance . now ( ) - startTime ) / 1000 ) . toLocaleString (
49
38
'en-US' ,
50
39
{
Original file line number Diff line number Diff line change @@ -1633,8 +1633,8 @@ class Howl {
1633
1633
// Clear out `this`.
1634
1634
this . _state = 'unloaded' ;
1635
1635
this . _sounds = [ ] ;
1636
- // @ts -expect-error Temporarily ignore strict type checking to allow dynamic JS
1637
- this = null ;
1636
+ // NOTE: This is operation is not allowed in modern TS + JS. Don't know how to replace it though.
1637
+ // this = null;
1638
1638
1639
1639
return null ;
1640
1640
}
You can’t perform that action at this time.
0 commit comments