Skip to content

Commit

Permalink
chore: fix generation of a few packages
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Dec 19, 2024
1 parent 4e58a44 commit 87a461b
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions scripts/generateDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const __dirname = fileURLToPath(new URL(".", import.meta.url));
const packages = [
{
name: "node-vibrant",
entryPoints: [resolve(__dirname, "../packages/node-vibrant/src/index.ts")],
entryPoints: [
resolve(__dirname, "../packages/node-vibrant/src/browser.ts"),
resolve(__dirname, "../packages/node-vibrant/src/node.ts"),
resolve(__dirname, "../packages/node-vibrant/src/worker.ts"),
],
tsconfig: resolve(__dirname, "../packages/node-vibrant/tsconfig.docs.json"),
outputDir: resolve(__dirname, "../docs/reference"),
exclude: [
Expand Down Expand Up @@ -60,11 +64,11 @@ const packages = [
{
name: "vibrant-generator-default",
entryPoints: [
resolve(__dirname, "../packages/vibrant-generator/src/index.ts"),
resolve(__dirname, "../packages/vibrant-generator-default/src/index.ts"),
],
tsconfig: resolve(
__dirname,
"../packages/vibrant-generator/tsconfig.docs.json",
"../packages/vibrant-generator-default/tsconfig.docs.json",
),
outputDir: resolve(
__dirname,
Expand All @@ -84,10 +88,12 @@ const packages = [
},
{
name: "vibrant-image-browser",
entryPoints: [resolve(__dirname, "../packages/vibrant-image/src/index.ts")],
entryPoints: [
resolve(__dirname, "../packages/vibrant-image-browser/src/index.ts"),
],
tsconfig: resolve(
__dirname,
"../packages/vibrant-image/tsconfig.docs.json",
"../packages/vibrant-image-browser/tsconfig.docs.json",
),
outputDir: resolve(
__dirname,
Expand All @@ -97,10 +103,12 @@ const packages = [
},
{
name: "vibrant-image-node",
entryPoints: [resolve(__dirname, "../packages/vibrant-image/src/index.ts")],
entryPoints: [
resolve(__dirname, "../packages/vibrant-image-node/src/index.ts"),
],
tsconfig: resolve(
__dirname,
"../packages/vibrant-image/tsconfig.docs.json",
"../packages/vibrant-image-node/tsconfig.docs.json",
),
outputDir: resolve(
__dirname,
Expand Down Expand Up @@ -130,11 +138,11 @@ const packages = [
{
name: "vibrant-quantizer-mmcq",
entryPoints: [
resolve(__dirname, "../packages/vibrant-quantizer/src/index.ts"),
resolve(__dirname, "../packages/vibrant-quantizer-mmcq/src/index.ts"),
],
tsconfig: resolve(
__dirname,
"../packages/vibrant-quantizer/tsconfig.docs.json",
"../packages/vibrant-quantizer-mmcq/tsconfig.docs.json",
),
outputDir: resolve(
__dirname,
Expand Down

0 comments on commit 87a461b

Please sign in to comment.