Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ jobs:
- name: Copy dist files to npm package
run: cp -r apps/oxlint/dist npm/oxlint/dist

- name: Copy dist files to @oxlint/plugins npm package
run: |
cp apps/oxlint/dist-pkg-plugins/* npm/oxlint-plugins/

- run: npm install -g npm@latest # For trusted publishing support

- name: Check Publish
Expand Down
10 changes: 1 addition & 9 deletions apps/oxlint/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { join } from "node:path";
const oxlintDirPath = join(import.meta.dirname, ".."),
srcDirPath = join(oxlintDirPath, "src-js"),
distDirPath = join(oxlintDirPath, "dist"),
distPkgPluginsDirPath = join(oxlintDirPath, "dist-pkg-plugins"),
pkgPluginsDirPath = join(oxlintDirPath, "../../npm/oxlint-plugins");
distPkgPluginsDirPath = join(oxlintDirPath, "dist-pkg-plugins");

// Delete `dist-pkg-plugins` directory
console.log("Deleting `dist-pkg-plugins` directory...");
Expand All @@ -30,11 +29,4 @@ for (const filename of readdirSync(srcDirPath)) {
copyFileSync(srcPath, join(distDirPath, filename));
}

// Copy files to `@oxlint/plugins` package
console.log("Moving files to `@oxlint/plugins` package...");
for (const filename of readdirSync(distPkgPluginsDirPath)) {
copyFileSync(join(distPkgPluginsDirPath, filename), join(pkgPluginsDirPath, filename));
}
rmSync(distPkgPluginsDirPath, { recursive: true });

console.log("Build complete!");
1 change: 0 additions & 1 deletion apps/oxlint/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export default defineConfig([

// `@oxlint/plugins` package.
// Dual package - both ESM and CommonJS.
// `scripts/build.ts` moves built files in `dist-pkg-plugins` to `npm/oxlint-plugins`.
{
...pluginsPkgConfig,
format: "esm",
Expand Down
110 changes: 0 additions & 110 deletions npm/oxlint-plugins/index.cjs

This file was deleted.

Loading
Loading