Skip to content

Commit 481ee95

Browse files
authored
[CLI] Fix package entry point path (#136)
## Motivation for the change, related issues Before this PR, installing `@wp-playground/cli` and importing functions from it would result in a `Error: Failed to resolve entry for package "@wp-playground/cli". The package may have incorrect main/module/exports specified in its package.json.` error. The error is caused by the incorrect primary entry point defined in `package.json`. This PR updates the entry point to `index.js`, which matches the entry point of the built package. ## Testing Instructions (or ideally a Blueprint) - Build Playground CLI - Open `dist/packages/playground/cli/index.js` and confirm it's the primary entry point for the package (it should contain the same export as `packages/playground/cli/src/index.ts`)
1 parent 26f2bf5 commit 481ee95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/playground/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"license": "GPL-2.0-or-later",
2323
"type": "module",
24-
"main": "main.js",
24+
"main": "index.js",
2525
"bin": "wp-playground.js",
2626
"gitHead": "2f8d8f3cea548fbd75111e8659a92f601cddc593"
2727
}

0 commit comments

Comments
 (0)