mirror of
https://github.com/withastro/astro.git
synced 2025-12-05 18:56:38 -06:00
fix(check): make the binary work in dev mode
This commit is contained in:
2
packages/language-tools/astro-check/src/bin.ts → packages/language-tools/astro-check/bin/astro-check.js
Normal file → Executable file
2
packages/language-tools/astro-check/src/bin.ts → packages/language-tools/astro-check/bin/astro-check.js
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import path from 'node:path';
|
||||
import { check, parseArgsAsCheckConfig } from './index.js';
|
||||
import { check, parseArgsAsCheckConfig } from '../dist/index.js';
|
||||
|
||||
const args = parseArgsAsCheckConfig(process.argv.slice(2));
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"bin": {
|
||||
"astro-check": "./dist/bin.js"
|
||||
"astro-check": "./bin/astro-check.js"
|
||||
},
|
||||
"files": [
|
||||
"bin",
|
||||
|
||||
Reference in New Issue
Block a user