Skip to content

Commit

Permalink
Merge pull request #54 from embroider-build/fix-types-and-exports
Browse files Browse the repository at this point in the history
fix package.json#exports for types
  • Loading branch information
ef4 authored Dec 18, 2023
2 parents cfac8e7 + 9d61f7d commit b559377
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 56 deletions.
48 changes: 0 additions & 48 deletions index.d.cts

This file was deleted.

2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ export class Preprocessor {
* @param {string | undefined} filename
* @returns {any}
*/
parse(src: string, filename?: string): Parsed;
parse(src: string, filename?: string): Parsed[];
}
4 changes: 2 additions & 2 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
"type": "module",
"exports": {
".": {
"browser": {
"import": "./pkg/standalone.js"
},
"import": {
"types": "./index.d.ts",
"browser": "./pkg/standalone.js",
"default": "./pkg/node/content_tag.cjs"
},
"require": {
"types": "./index.d.cts",
"types": "./index.d.ts",
"default": "./pkg/node/content_tag.cjs"
}
}
Expand All @@ -36,7 +34,7 @@
"ci:node": "mocha",
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
"lint:package": "publint",
"lint:published-types": "attw --pack --ignore-rules cjs-resolves-to-esm --ignore-rules false-esm",
"lint:published-types": "attw --pack --ignore-rules false-esm",
"start": "vite",
"test": "npm run ci:node"
},
Expand Down

0 comments on commit b559377

Please sign in to comment.