Skip to content

Commit c99ad0c

Browse files
committed
fix: remove pathe and some tweaks
1 parent 99c9bee commit c99ad0c

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

packages/scaffold/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"fs-extra": "^11.3.0",
8181
"hookable": "^5.5.3",
8282
"octokit": "^4.1.2",
83-
"pathe": "^2.0.3",
8483
"std-env": "^3.8.1",
8584
"tiny-update-notifier": "^2.0.0",
8685
"tinyglobby": "^0.2.12",

packages/scaffold/src/core/tester/http-reporter.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ export class TestHttpReporter {
129129
case "fail":
130130
this.failed++;
131131
logger.fail(styleText.red(`${data.title}, ${body.data?.error?.message}`), logger_option);
132-
// if (this.onFailed)
133-
// this.onFailed();
134132
break;
135133
case "pending":
136134
logger.info(`${data.title} pending`, logger_option);
@@ -143,9 +141,6 @@ export class TestHttpReporter {
143141
logger.success(`Test run completed - ${this.passed} passed`);
144142
else
145143
logger.fail(`Test run completed - ${this.passed} passed, ${this.failed} failed`);
146-
147-
// if (this.onEnd)
148-
// this.onEnd();
149144
break;
150145
default:
151146
logger.log(data);

packages/scaffold/src/core/tester/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { Context } from "../../types/index.js";
2-
import { join } from "node:path";
2+
import { join, resolve } from "node:path";
33
import process from "node:process";
44
import { emptyDir } from "fs-extra/esm";
5-
import { resolve } from "pathe";
65
import { isCI } from "std-env";
76
import { TESTER_DATA_DIR, TESTER_PLUGIN_DIR, TESTER_PLUGIN_ID, TESTER_PROFILE_DIR } from "../../constant.js";
87
import { toArray } from "../../utils/string.js";

packages/scaffold/src/core/tester/test-bundler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { BuildContext, BuildResult } from "esbuild";
22
import type { Context } from "../../types/index.js";
3+
import { resolve } from "node:path";
34
import { context } from "esbuild";
45
import { copy, outputFile, outputJSON, pathExists } from "fs-extra/esm";
5-
import { resolve } from "pathe";
66
import { glob } from "tinyglobby";
77
import { CACHE_DIR, TESTER_PLUGIN_DIR } from "../../constant.js";
88
import { saveResource } from "../../utils/file.js";

packages/scaffold/src/utils/prefs-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class PrefsManager {
123123
}
124124

125125
/**
126-
* Parse Method 2 - Using swc
126+
* Render Method 2 - Using swc
127127
*/
128128
render() {
129129
const span = { start: 0, end: 0, ctxt: 0 };
@@ -195,7 +195,7 @@ export class PrefsManager {
195195
}
196196

197197
/**
198-
* Parse Method 1 - Using string
198+
* Render Method 1 - Using string
199199
* @deprecated
200200
*/
201201
private renderByString() {

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)