Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Apr 26, 2024
1 parent 3781fdb commit 9619942
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: npm install -f

- name: Build
run: npm run build
run: npm run build:tsup

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
3 changes: 2 additions & 1 deletion src/configs/flat/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import {
hasTypescriptEslintParser,
} from "../has-typescript-eslint-parser"
import { environments } from "../../environments/index"
let plugin: unknown
export default [
{
plugins: {
get astro(): ESLint.Plugin {
// eslint-disable-next-line @typescript-eslint/no-require-imports -- ignore
return require("../../plugin-without-config")
return (plugin ??= require("../../plugin-without-config"))
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion tools/update-rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ import type { ESLint } from "eslint"
import * as parser from "astro-eslint-parser"
import { tsESLintParser, hasTypescriptEslintParser } from "../has-typescript-eslint-parser"
import { environments } from "../../environments/index"
let plugin: unknown
export default [
{
plugins: {
get astro(): ESLint.Plugin {
// eslint-disable-next-line @typescript-eslint/no-require-imports -- ignore
return require("../../plugin-without-config")
return (plugin ??= require("../../plugin-without-config"))
},
},
},
Expand Down

0 comments on commit 9619942

Please sign in to comment.