| 6 | const PACKAGE = 'eslint-plugin-qwik'; |
| 7 | |
| 8 | export async function buildEslint(config: BuildConfig) { |
| 9 | const eslintDir = join(config.packagesDir, PACKAGE); |
| 10 | const eslintOutput = join(eslintDir, 'dist'); |
| 11 | |
| 12 | await build({ |
| 13 | entryPoints: [join(eslintDir, 'index.ts')], |
| 14 | outfile: join(eslintOutput, 'index.js'), |
| 15 | bundle: true, |
| 16 | sourcemap: false, |
| 17 | target: nodeTarget, |
| 18 | platform: 'node', |
| 19 | minify: !config.dev, |
| 20 | external: ['eslint', 'espree', '@typescript-eslint/utils', 'typescript'], |
| 21 | }); |
| 22 | |
| 23 | console.log(`📐 ${PACKAGE}`); |
| 24 | } |
| 25 | |
| 26 | export async function publishEslint( |
| 27 | config: BuildConfig, |