File tree Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Expand file tree Collapse file tree 6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change
1
+ // @ts -check
2
+
1
3
/*
2
4
Produces production builds and stitches together d.ts files.
3
5
@@ -14,11 +16,9 @@ nr build core --formats cjs
14
16
```
15
17
*/
16
18
17
- // @ts -check
18
19
import fs from 'node:fs/promises'
19
20
import { existsSync , readFileSync } from 'node:fs'
20
21
import path from 'node:path'
21
- import { fileURLToPath } from 'node:url'
22
22
import minimist from 'minimist'
23
23
import { gzipSync } from 'node:zlib'
24
24
import { compress } from 'brotli'
Original file line number Diff line number Diff line change
1
+ // @ts -check
2
+
1
3
// Using esbuild for faster dev builds.
2
4
// We are still using Rollup for production builds because it generates
3
5
// smaller files w/ better tree-shaking.
4
6
5
- // @ts -check
6
7
import esbuild from 'esbuild'
7
8
import { resolve , relative , dirname } from 'node:path'
8
9
import { fileURLToPath } from 'node:url'
Original file line number Diff line number Diff line change
1
+ // @ts -check
1
2
import fs from 'node:fs'
2
3
3
4
const packagesToCheck = [
Original file line number Diff line number Diff line change
1
+ // @ts -check
1
2
if ( ! / p n p m / . test ( process . env . npm_execpath || '' ) ) {
2
3
console . warn (
3
4
`\u001b[33mThis repository requires using pnpm as the package manager ` +
Original file line number Diff line number Diff line change
1
+ // @ts -check
1
2
import fs from 'node:fs'
2
3
import chalk from 'chalk'
3
4
import { createRequire } from 'node:module'
Original file line number Diff line number Diff line change
1
+ // @ts -check
1
2
import chalk from 'chalk'
2
3
import { readFileSync } from 'fs'
3
4
import path from 'path'
4
- import { fileURLToPath } from 'url'
5
5
6
- const dirname = path . dirname ( fileURLToPath ( import . meta. url ) , '..' )
7
- const msgPath = path . resolve ( dirname , '../.git/COMMIT_EDITMSG' )
6
+ const msgPath = path . resolve ( '.git/COMMIT_EDITMSG' )
8
7
const msg = readFileSync ( msgPath , 'utf-8' ) . trim ( )
9
8
10
9
const commitRE =
You can’t perform that action at this time.
0 commit comments