Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"typecheck": "tsc",
"lint": "eslint",
"knip": "knip",
"publint": "publint",
"test:watch": "vitest --ui",
"test": "vitest run",
"attw": "attw --pack .",
"qa": "pnpm typecheck && pnpm test && pnpm knip && pnpm publint && attw",
"qa": "pnpm typecheck && pnpm test && pnpm knip && attw",
"nuke": "rm -rf node_modules pnpm-lock.yaml",
"update:eslint-docs": "eslint-doc-generator",
"lint:eslint-docs": "pnpm update:eslint-docs -- --check",
"semantic-release": "pnpm build && semantic-release"
},
"files": [
"README.md",
"LICENSE",
"dist",
"docs"
],
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ESLint } from "eslint";
import { last } from "lodash-es";
import * as packageJson from "../package.json";
import packageJson from "../package.json";
import { rules } from "./rules";

const plugin = {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"include": [
"src/**/*",
"tests/**/*",
"./tsup.config.ts",
"./tsdown.config.ts",
"./vitest.config.ts",
".eslint-doc-generatorrc.mjs"
],
"compilerOptions": {
"target": "ESNext",
"lib": ["esnext"],
"composite": false,
"module": "ESNext",
"module": "preserve",
"moduleResolution": "bundler",
"sourceMap": true,
"declaration": true,
Expand Down
4 changes: 1 addition & 3 deletions tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { defineConfig } from "tsdown";
export default defineConfig({
entry: ["./src/index.ts"],
format: ["esm", "cjs"],
target: "node20",
platform: "node",
clean: true,
sourcemap: false,
skipNodeModulesBundle: true,
shims: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't needed.
Needing shims is a sign that the bundle config is wrong.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok but they say they strip it away if it's not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ehh, that's true.
I'd still prefer to get warning signs if we're doing it wrong, but it's up to you ig.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I meant to mention, shims are good here. I forgot it isn't ESM only (although I don't see why not to go ESM-only here).

publint: { strict: true },
dts: true,
});