Skip to content

Commit

Permalink
chore(deps): update npm packages (#4)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <boshenc@gmail.com>
  • Loading branch information
renovate[bot] and Boshen authored Sep 6, 2024
1 parent 8adce5c commit b21705f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 42 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
},
"devDependencies": {
"@swc/core": "^1.7.23",
"oxc-transform": "^0.17.2",
"oxc-transform": "^0.26.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"packageManager": "pnpm@9.5.0"
"packageManager": "pnpm@9.9.0"
}
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/isolatedDeclarations.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { isolatedDeclaration } from "oxc-transform";
const fileName = "test.ts";

function oxc(sourceText) {
return isolatedDeclaration(fileName, sourceText);
return isolatedDeclaration(fileName, sourceText, {
sourcemap: false
});
}

function tsc(sourceText) {
Expand All @@ -21,7 +23,7 @@ const sources = fs.readdirSync("./fixtures").map((filename) => {

describe.each(sources)('%s', (_, sourceText) => {
const oxcResult = oxc(sourceText);
assert(oxcResult.sourceText);
assert(oxcResult.code);

const tscResult = tsc(sourceText);
assert(tscResult.outputText);
Expand Down
2 changes: 1 addition & 1 deletion src/transformer.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const sources = fs.readdirSync("./fixtures")
describe.each(sources)('%s', (filename, sourceText) => {
console.log(filename)
const oxcResult = oxc(filename, sourceText);
assert(oxcResult.sourceText);
assert(oxcResult.code);

const swcResult = swc(filename, sourceText);
assert(swcResult.code);
Expand Down

0 comments on commit b21705f

Please sign in to comment.