Skip to content

Commit

Permalink
made parser-utils package use exports instead of main
Browse files Browse the repository at this point in the history
  • Loading branch information
c1rrus committed Dec 4, 2024
1 parent 1e37a80 commit 0ff5419
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package-lock.json

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

15 changes: 13 additions & 2 deletions packages/parser-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
"name": "@udt/parser-utils",
"version": "0.2.0",
"description": "Low-level logic and utilities for parsing DTCG and DTCG-like files",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"sideEffects": false,
"files": [
"dist/"
],
"scripts": {
"clean": "del-cli dist/*",
"build": "tsc -p tsconfig.build.json",
Expand All @@ -25,5 +33,8 @@
"bugs": {
"url": "https://github.com/universal-design-tokens/udt/issues"
},
"engines": {
"node": ">= 18"
},
"homepage": "https://github.com/universal-design-tokens/udt/tree/master/packages/parser-utils#readme"
}

0 comments on commit 0ff5419

Please sign in to comment.