Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swc-project/swc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b1230cfaf16e75cb66920c27d9e8c96d19ad1ce3
Choose a base ref
...
head repository: swc-project/swc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 05de9103ded391e46ec3004a33982b1ef8c17c9e
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Aug 17, 2023

  1. revert

    kdy1 committed Aug 17, 2023
    Copy the full SHA
    d4df053 View commit details
  2. restore

    kdy1 committed Aug 17, 2023
    Copy the full SHA
    05de910 View commit details
211 changes: 103 additions & 108 deletions packages/swc-helpers/package.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { parseFiles } from "@ast-grep/napi";
import MagicString from "magic-string";
import { chalk, fs, path } from "zx";
import { errors } from "./errors.mjs";
import { root } from "./utils.mjs";
import { errors } from "./errors.js";
import { root } from "./utils.js";

/**
* @typedef {import("@ast-grep/napi").SgNode} SgNode
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env zx

import { $, fs, glob } from "zx";
import { ast_grep } from "./ast_grep.mjs";
import { errors } from "./errors.mjs";
import { root } from "./utils.mjs";
import { ast_grep } from "./ast_grep.js";
import { errors } from "./errors.js";
import { root } from "./utils.js";

// clear generated content
await Promise.all([
@@ -49,7 +49,7 @@ modules.forEach((p) => {
};
main_package_json.exports[`./lib/${importBinding}.js`] = {
import: `./esm/${importBinding}.js`,
default: `./cjs/${importBinding}.cjs`,
require: `./cjs/${importBinding}.cjs`,
};

const alias_package = {
@@ -117,7 +117,7 @@ if (errors.length > 0) {
} else {
$.cwd = root(".");
await $`dprint fmt`;
await $`dprint fmt "scripts/*.mjs" -c scripts/.dprint.json`;
await $`dprint fmt "scripts/*.js" -c scripts/.dprint.json`;
}

function re_export_esm(importBinding) {
13 changes: 0 additions & 13 deletions packages/swc-helpers/scripts/build.sh

This file was deleted.

File renamed without changes.
5 changes: 0 additions & 5 deletions packages/swc-helpers/scripts/gen.sh

This file was deleted.

File renamed without changes.