Skip to content

Commit

Permalink
Add type declarations (#15)
Browse files Browse the repository at this point in the history
* Add DTS and fix package metadata.

* Changelog: 0.5.0.
  • Loading branch information
Anna Bocharova authored Aug 10, 2024
1 parent 31f8463 commit 81b7134
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Version 0

### v0.5.0

- Added type declarations;
- Fixed `module` field in package.

### v0.4.1

- Improving documentation.
Expand Down
Binary file modified bun.lockb
Binary file not shown.
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
"name": "eslint-plugin-allowed-dependencies",
"description": "ESLint plugin Allowed Dependencies",
"version": "0.4.1",
"module": "src/index.ts",
"type": "module",
"module": "dist/index.js",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"license": "MIT",
Expand All @@ -27,7 +33,7 @@
"*.md"
],
"scripts": {
"build": "bun run tsup",
"build": "bun run tsup && attw --pack",
"lint": "bun run biome check",
"test": "tsc --noEmit && bun test src",
"mdfix": "bunx --bun prettier *.md --write",
Expand All @@ -38,6 +44,7 @@
"ramda": "^0.30.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.4",
"@biomejs/biome": "1.8.3",
"@tsconfig/bun": "^1.0.7",
"@types/bun": "latest",
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
splitting: false,
sourcemap: false,
clean: true,
dts: false,
dts: true,
minify: true,
target: `node${minNode.major}.${minNode.minor}.${minNode.patch}`,
cjsInterop: true,
Expand Down

0 comments on commit 81b7134

Please sign in to comment.