@notionhq/custom-blocks-dev-shell 0.1.75 → 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +5 -3
- package/dist/assets/index-YFQJm-TG.js +11 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/index-DjRinp6j.js +0 -11
package/bin/cli.js
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* The package exposes this file as its CLI entry point. Keep the wrapper dependency-free.
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
|
-
await import(new URL("../dist-cli/published-cli.js", import.meta.url))
|
|
8
|
+
await import(new URL("../dist-cli/published-cli.js", import.meta.url).href)
|
|
9
9
|
} catch (error) {
|
|
10
10
|
if (
|
|
11
|
-
error
|
|
12
|
-
|
|
11
|
+
error instanceof Error &&
|
|
12
|
+
"code" in error &&
|
|
13
|
+
error.code === "ERR_MODULE_NOT_FOUND" &&
|
|
14
|
+
error.message.includes("dist-cli")
|
|
13
15
|
) {
|
|
14
16
|
process.stderr.write(
|
|
15
17
|
"✗ Could not locate the built CLI. Reinstall the dev shell package.\n",
|