Skip to content

Commit

Permalink
fix: Include cli in export paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Feb 23, 2024
1 parent 3723396 commit 42c356a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"bin": {
"publish-extension": "bin/publish-extension.cjs"
},
"exports": [
{
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
Expand All @@ -45,16 +45,20 @@
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./cli": {
"require": "./dist/cli.cjs",
"import": "./dist/cli.js"
}
],
},
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"compile": "tsc --noEmit",
"build": "run-s build:*",
"build:clean": "rimraf dist",
"build:lib": "tsup src/index.ts --dts --format cjs,esm --sourcemap",
"build:cli": "tsup --format cjs --entry.cli src/cli.ts",
"build:cli": "tsup --format cjs,esm --entry.cli src/cli.ts",
"build:test-extension": "node scripts/build-test-extension.js",
"test": "vitest",
"lint": "run-p -c -s lint:*",
Expand Down

0 comments on commit 42c356a

Please sign in to comment.