Skip to content

Commit bfe1c4e

Browse files
committed
fix: don't drop node 16
Don't mark `package.json` as external.
1 parent d3fd40c commit bfe1c4e

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
plugins: ['prettier-plugin-svelte', 'prettier-plugin-astro']
33
}

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { TSServiceManager } from "./ts";
44
import * as tsEslintParser from "@typescript-eslint/parser";
55
import { getProjectConfigFiles } from "./utils/get-project-config-files";
66
import { resolveProjectList } from "./utils/resolve-project-list";
7-
export * as meta from "./meta";
8-
export { name } from "./meta";
7+
export { default as meta, name } from "./meta";
98

109
const DEFAULT_EXTRA_FILE_EXTENSIONS = [".vue", ".svelte", ".astro"];
1110
const tsServiceManager = new TSServiceManager();

src/meta.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
export { name, version } from "../package.json";
1+
import { name as pkgName, version } from "../package.json";
2+
import { TSESLint } from "@typescript-eslint/utils";
3+
4+
const meta: TSESLint.FlatConfig.PluginMeta = { name: pkgName, version };
5+
6+
export default meta;
7+
8+
export const name: string = pkgName;

tsdown.config.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default defineConfig({
44
entry: ["src/index.ts"],
55
format: ["cjs", "esm"],
66
target: ["node16"],
7-
external: [/package.json/],
87
outDir: "lib",
98
skipNodeModulesBundle: true,
109
publint: { strict: true, pack: "npm" },

0 commit comments

Comments
 (0)