jiek 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.cjs +8 -7
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +8 -7
- package/dist/cli.min.cjs +4 -4
- package/dist/cli.min.js +4 -4
- package/dist/index.d.cts +62 -0
- package/dist/index.d.ts +62 -0
- package/dist/rollup/index.cjs +8 -7
- package/dist/rollup/index.d.cts +1 -60
- package/dist/rollup/index.d.ts +1 -60
- package/dist/rollup/index.js +2 -1
- package/dist/rollup/index.min.cjs +3 -3
- package/dist/rollup/index.min.js +2 -2
- package/package.json +1 -1
- package/src/commands/build.ts +14 -3
- package/src/rollup/base.ts +0 -13
- package/src/utils/loadConfig.ts +3 -0
package/src/rollup/base.ts
CHANGED
@@ -78,16 +78,3 @@ export type RollupProgressEvent =
|
|
78
78
|
message?: string
|
79
79
|
}
|
80
80
|
}
|
81
|
-
|
82
|
-
declare module 'jiek' {
|
83
|
-
export interface Config {
|
84
|
-
build?: TemplateOptions & {
|
85
|
-
/**
|
86
|
-
* Whether to run in silent mode, only active when configured in the workspace root or cwd.
|
87
|
-
*
|
88
|
-
* @default false
|
89
|
-
*/
|
90
|
-
silent?: boolean
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
package/src/utils/loadConfig.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import fs from 'node:fs'
|
2
|
+
import { createRequire } from 'node:module'
|
2
3
|
import path from 'node:path'
|
3
4
|
|
4
5
|
import { program } from 'commander'
|
@@ -8,6 +9,8 @@ import { load } from 'js-yaml'
|
|
8
9
|
import { getWD } from './getWD'
|
9
10
|
import { tsRegisterName } from './tsRegister'
|
10
11
|
|
12
|
+
const require = createRequire(import.meta.url)
|
13
|
+
|
11
14
|
let configName = 'jiek.config'
|
12
15
|
|
13
16
|
function getConfigPath(root: string, dir?: string) {
|