diff --git a/bin/prismic-ts-codegen.js b/bin/prismic-ts-codegen.js new file mode 100644 index 0000000..0db77e1 --- /dev/null +++ b/bin/prismic-ts-codegen.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +import("../dist/cli.cjs"); diff --git a/bin/prismic-ts-codegen.mjs b/bin/prismic-ts-codegen.mjs deleted file mode 100755 index 885b11e..0000000 --- a/bin/prismic-ts-codegen.mjs +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node - -import("../dist/cli.js"); diff --git a/package.json b/package.json index 10cba15..f01ebb4 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "bin": { - "prismic-ts-codegen": "./bin/prismic-ts-codegen.mjs" + "prismic-ts-codegen": "./bin/prismic-ts-codegen.js" }, "files": [ "dist", @@ -100,4 +100,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 138bc10..f9e6dbb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,12 @@ import sdk from "vite-plugin-sdk"; export default defineConfig({ plugins: [ sdk({ - internalDependencies: ["@prismicio/client", "quick-lru"], + internalDependencies: [ + "@prismicio/client", + "meow", + "node-fetch", + "quick-lru", + ], }), ], build: {