From d1ac01c9c15f0efc177681fab24f06294972e393 Mon Sep 17 00:00:00 2001 From: magic-akari Date: Thu, 7 Nov 2024 21:10:11 +0800 Subject: [PATCH] fix: jsr ignore issue --- .github/workflows/publish.yml | 2 +- .gitignore | 2 -- crates/ruff_fmt/scripts/package.mjs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6047e8..f95ffec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -97,7 +97,7 @@ jobs: name: build path: crates/ruff_fmt/pkg - - run: npx jsr publish + - run: npx jsr publish --allow-dirty working-directory: crates/ruff_fmt/pkg publish-github-release: diff --git a/.gitignore b/.gitignore index 4ea6046..b630a4c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,3 @@ target/ # MSVC Windows builds of rustc generate these, which store debugging information *.pdb - -crates/*/pkg/ diff --git a/crates/ruff_fmt/scripts/package.mjs b/crates/ruff_fmt/scripts/package.mjs index ebb347c..bf850bd 100755 --- a/crates/ruff_fmt/scripts/package.mjs +++ b/crates/ruff_fmt/scripts/package.mjs @@ -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 = ["!../pkg/", "*.tgz"]; +pkg_json.exclude = ["!**", "*.tgz"]; fs.writeFileSync(jsr_path, JSON.stringify(pkg_json, null, 4));