Skip to content

Commit

Permalink
fix: seperate needsNodesBuild in bin/build.mjs for readability
Browse files Browse the repository at this point in the history
Co-authored-by: 0b5vr <[email protected]>
  • Loading branch information
yue4u and 0b5vr authored Jul 1, 2024
1 parent 6d40b26 commit 32b02a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ async function buildPackage(absWorkingDir) {
};
let outFilename = addSuffix(filename);

const extraEntryPoints = ['@pixiv/three-vrm', '@pixiv/three-vrm-materials-mtoon'].includes(packageJson.name)
const needsNodesBuild = ['@pixiv/three-vrm', '@pixiv/three-vrm-materials-mtoon'].includes(packageJson.name);
const extraEntryPoints = needsNodesBuild
? { [addSuffix('nodes/index')]: 'src/nodes/index.ts' }
: {};

Expand Down

0 comments on commit 32b02a8

Please sign in to comment.