Skip to content

Commit

Permalink
Add declaration maps
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 17, 2024
1 parent 2e7f148 commit 4be1154
Show file tree
Hide file tree
Showing 44 changed files with 44 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
benchmark-cache/
coverage/
node_modules/
*.d.ts.map
*.d.ts
*.log
*.tsbuildinfo
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-from-string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-body-ok-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-conditional-comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-css-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-is-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/hast-util-to-string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/html-enumerated-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/html-url-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/html-whitespace-sensitive-tag-names/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-concat-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-concat-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-css-to-top/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-javascript-to-bottom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-attribute-whitespace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-enumerated-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-javascript-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-javascript-url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-json-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-media-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-meta-color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-meta-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-style-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-minify-whitespace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-preset-minify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js"
],
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-prevent-favicon-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-remove-comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-remove-empty-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-remove-meta-http-equiv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-remove-script-type-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-remove-style-type-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-sort-attribute-values/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
1 change: 1 addition & 0 deletions packages/rehype-sort-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": "./index.js",
"files": [
"index.d.ts",
"index.d.ts.map",
"index.js",
"lib/"
],
Expand Down
2 changes: 1 addition & 1 deletion script/pipeline-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function generatePackageJson(context) {
)

const [files, file, commitResult] = await Promise.all([
findDownAll(['.js', '.ts'], fileURLToPath(context.packageFolder)),
findDownAll(['.js', '.map', '.ts'], fileURLToPath(context.packageFolder)),
read(new URL('package.json', context.packageFolder)),
exec('git log --all --format="%cN <%cE>" "' + folderPath + '"')
])
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"checkJs": true,
"customConditions": ["development"],
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"exactOptionalPropertyTypes": true,
"lib": ["es2022"],
Expand Down

0 comments on commit 4be1154

Please sign in to comment.