Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump publint from 0.1.16 to 0.2.0 #1082

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -740,4 +740,5 @@ ignorePatterns:
- .temp/
- node_modules/
- index.cjs
- index.d.cts
- testing.cjs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ _reports/
.env
crash-*
index.cjs
index.d.cts
testing.cjs

# ESLint
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
!src/
!CHANGELOG.md
!index.cjs
!index.d.cts
!index.d.ts
!index.js
!package.json
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Versioning].

## [Unreleased]

- _No changes yet_
- Fix TypeScript type exports for CommonJS use. ([#1082])

## [1.7.2] - 2023-07-07

Expand Down Expand Up @@ -282,6 +282,7 @@ Versioning].
[#998]: https://github.com/ericcornelissen/shescape/pull/998
[#1022]: https://github.com/ericcornelissen/shescape/pull/1022
[#1023]: https://github.com/ericcornelissen/shescape/pull/1023
[#1082]: https://github.com/ericcornelissen/shescape/pull/1082
[552e8ea]: https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 18 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@
"main": "./index.cjs",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js",
"require": "./index.cjs"
"import": {
"types": "./index.d.ts",
"default": "./index.js"
},
"require": {
"types": "./index.d.cts",
"default": "./index.cjs"
}
},
"./testing": {
"types": "./index.d.ts",
"import": "./testing.js",
"require": "./testing.cjs"
"import": {
"types": "./index.d.ts",
"default": "./testing.js"
},
"require": {
"types": "./index.d.cts",
"default": "./testing.cjs"
}
}
},
"typings": "index.d.ts",
Expand Down Expand Up @@ -69,7 +79,7 @@
"nve": "16.1.0",
"nyc": "15.1.0",
"prettier": "3.0.0",
"publint": "0.1.16",
"publint": "0.2.0",
"rollup": "3.26.2",
"sinon": "15.2.0"
},
Expand Down Expand Up @@ -118,7 +128,7 @@
"test:e2e": "ava test/e2e/**/*.test.js --timeout 1m",
"test:integration": "ava test/integration/**/*.test.js --timeout 1m",
"test:unit": "ava test/unit/**/*.test.js",
"transpile": "rollup --config rollup.config.js",
"transpile": "rollup --config rollup.config.js && cp index.d.ts index.d.cts",
"verify": "npm run format:check && npm run license-check && npm run lint && npm run coverage && npm run vet",
"vet": "npm run vet:deps",
"vet:deps": "knip --config .knip.jsonc"
Expand Down
2 changes: 1 addition & 1 deletion script/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import * as fs from "node:fs";
import * as path from "node:path";

const files = ["index.cjs", "testing.cjs"];
const files = ["index.cjs", "index.d.cts", "testing.cjs"];
const folders = ["./.corpus", "./.nyc_output", "./.temp", "./_reports"];

for (const file of files) {
Expand Down