jiek 1.0.9 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- }
@@ -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) {