Skip to content

Commit

Permalink
fix(cli): prevent "Named export 'createClient' not found" error (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: lihbr <[email protected]>
  • Loading branch information
lihbr and lihbr authored Aug 4, 2023
1 parent b31a30a commit bde11d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions bin/prismic-ts-codegen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import("../dist/cli.cjs");
3 changes: 0 additions & 3 deletions bin/prismic-ts-codegen.mjs

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -100,4 +100,4 @@
"publishConfig": {
"access": "public"
}
}
}
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit bde11d8

Please sign in to comment.