Skip to content

Commit

Permalink
fix: jsr publish issue
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Oct 26, 2024
1 parent 8d2d193 commit ce76769
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions crates/ruff_fmt/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ wasm-pack build --target=web --scope=wasm-fmt crates/ruff_fmt
cp README.md crates/ruff_fmt/pkg/

cd $crates_dir
# backup ruff_fmt.js
cp ./pkg/ruff_fmt.js ./pkg/ruff_fmt.js.bak

cp -R ./extra/. ./pkg/

Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_fmt/scripts/package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ fs.writeFileSync(pkg_path, JSON.stringify(pkg_json, null, 4));
const jsr_path = path.resolve(pkg_path, "..", "jsr.jsonc");
pkg_json.name = "@fmt/ruff-fmt";
pkg_json.exports = "./ruff_fmt.js";
pkg_json.exclude = ["!**", "*.tgz"];
pkg_json.exclude = ["!../pkg/", "*.tgz"];
fs.writeFileSync(jsr_path, JSON.stringify(pkg_json, null, 4));

0 comments on commit ce76769

Please sign in to comment.