File tree 6 files changed +14
-10
lines changed
6 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
- import { program } from 'commander' ;
2
1
import * as fs from 'node:fs' ;
3
2
3
+ import { program } from 'commander' ;
4
+
4
5
import { renderFile } from '~/utils/ets.js' ;
5
6
6
7
program
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ type ImportResolver = (importString: string) => string;
39
39
*/
40
40
export type EscapeCallback = ( markup ?: any ) => string ;
41
41
42
- type RethrowProps = {
42
+ interface RethrowProps {
43
43
error : Error ;
44
44
source : string ;
45
45
filename : string ;
46
46
lineno : number ;
47
47
escape : EscapeCallback ;
48
- } ;
48
+ }
49
49
50
50
/**
51
51
* This type of callback is used when `Options.compileDebug`
Original file line number Diff line number Diff line change 1
- import { join } from 'desm' ;
2
1
import * as fs from 'node:fs' ;
3
2
3
+ import { join } from 'desm' ;
4
+
4
5
import * as ets from '~/index.js' ;
5
6
6
7
const output = await ets . render (
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " example-project" ,
3
- "version" : " 1.0.0" ,
4
3
"type" : " module" ,
4
+ "version" : " 1.0.0" ,
5
5
"description" : " " ,
6
+ "keywords" : [],
7
+ "license" : " ISC" ,
8
+ "author" : " " ,
6
9
"main" : " index.js" ,
7
10
"scripts" : {
8
11
"test" : " echo \" Error: no test specified\" && exit 1"
9
12
},
10
- "keywords" : [],
11
- "author" : " " ,
12
- "license" : " ISC" ,
13
13
"dependencies" : {
14
14
"cowsay" : " ^1.5.0" ,
15
15
"embedded-ts" : " link:../../../dist"
Original file line number Diff line number Diff line change
1
+ import { createRequire } from 'node:module' ;
2
+
1
3
import { join } from 'desm' ;
2
4
import * as ets from 'embedded-ts' ;
3
- import { createRequire } from 'node:module' ;
4
5
5
6
const require = createRequire ( import . meta. url ) ;
6
7
Original file line number Diff line number Diff line change 1
- import { join } from 'desm' ;
2
1
import * as fs from 'node:fs' ;
3
2
import * as path from 'node:path' ;
3
+
4
+ import { join } from 'desm' ;
4
5
import { test } from 'vitest' ;
5
6
6
7
import * as ets from '~/index.js' ;
You can’t perform that action at this time.
0 commit comments