Skip to content

Commit

Permalink
chore: fix script for package creation
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Mar 11, 2023
1 parent 94cc7a3 commit d921cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create_package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ SOFTWARE.

// Add TS alias
const globalTsConfig = await import("../tsconfig.json");
(globalTsConfig.compilerOptions.paths as Record<string, string[]>)[moduleName] = [`./packages/${name}`];
(globalTsConfig.compilerOptions.paths as Record<string, string[]>)[moduleName] = [`./packages/${name}/src`];
fs.writeFileSync(path.join(projectDir, "tsconfig.json"), `${JSON.stringify(globalTsConfig, null, " ")}\n`, { flag: "w+" });

console.log(`Package '${moduleName}' created`);
Expand Down

0 comments on commit d921cd4

Please sign in to comment.