Skip to content

Commit 8495cc8

Browse files
author
Leon Si
committed
chore: foramt
1 parent bf1c793 commit 8495cc8

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

src/bin/cli.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { program } from 'commander';
21
import * as fs from 'node:fs';
32

3+
import { program } from 'commander';
4+
45
import { renderFile } from '~/utils/ets.js';
56

67
program

src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ type ImportResolver = (importString: string) => string;
3939
*/
4040
export type EscapeCallback = (markup?: any) => string;
4141

42-
type RethrowProps = {
42+
interface RethrowProps {
4343
error: Error;
4444
source: string;
4545
filename: string;
4646
lineno: number;
4747
escape: EscapeCallback;
48-
};
48+
}
4949

5050
/**
5151
* This type of callback is used when `Options.compileDebug`

test/bin/projects.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { join } from 'desm';
21
import * as fs from 'node:fs';
32

3+
import { join } from 'desm';
4+
45
import * as ets from '~/index.js';
56

67
const output = await ets.render(

test/fixtures/example-project/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "example-project",
3-
"version": "1.0.0",
43
"type": "module",
4+
"version": "1.0.0",
55
"description": "",
6+
"keywords": [],
7+
"license": "ISC",
8+
"author": "",
69
"main": "index.js",
710
"scripts": {
811
"test": "echo \"Error: no test specified\" && exit 1"
912
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "ISC",
1313
"dependencies": {
1414
"cowsay": "^1.5.0",
1515
"embedded-ts": "link:../../../dist"

test/fixtures/example-project/render.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { createRequire } from 'node:module';
2+
13
import { join } from 'desm';
24
import * as ets from 'embedded-ts';
3-
import { createRequire } from 'node:module';
45

56
const require = createRequire(import.meta.url);
67

test/suites/examples.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { join } from 'desm';
21
import * as fs from 'node:fs';
32
import * as path from 'node:path';
3+
4+
import { join } from 'desm';
45
import { test } from 'vitest';
56

67
import * as ets from '~/index.js';

0 commit comments

Comments
 (0)