Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Citolab/tspci
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick de Klein committed Oct 10, 2024
2 parents cefc689 + 2f2ed07 commit a5cfbd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tspci/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,13 @@ const run = async () => {
console.error("Missing target name. Use tspci --target target");
}
const targetname = args[targetIndex + 1];
const scriptFile = path.join(
let scriptFile = path.join(
path.join(path.join(path.join(NODE_MODULES, `@citolab`), `tspci-${targetname}`), "src"),
`createPackage.mjs`
);
if (!fs.existsSync(scriptFile)) {
scriptFile = path.join(path.join(path.join(NODE_MODULES, targetname), "src"), `createPackage.mjs`);
}
import(`file:///${scriptFile}`).then((script) => {
script.bundle();
});
Expand Down

0 comments on commit a5cfbd7

Please sign in to comment.