Skip to content

Commit

Permalink
Updating install for deno
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiab committed Dec 10, 2024
1 parent 378c485 commit 3d5b10c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.DS_Store
24 changes: 15 additions & 9 deletions setup-sda.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -543,15 +543,18 @@ export default function getTempChange(
} else if (runtime === "deno") {
console.log("\n3 - Installing libraries with Deno...");
execSync(
"deno install --node-modules-dir=auto --allow-scripts=npm:duckdb jsr:@nshiab/simple-data-analysis",
"deno install --node-modules-dir=auto --allow-scripts=npm:playwright-chromium,npm:duckdb jsr:@nshiab/simple-data-analysis",
{
stdio: "ignore",
},
);
console.log(" => simple-data-analysis has been installed from JSR.");
execSync("deno install --node-modules-dir=auto jsr:@nshiab/journalism", {
stdio: "ignore",
});
execSync(
"deno install --node-modules-dir=auto --allow-scripts=npm:playwright-chromium jsr:@nshiab/journalism",
{
stdio: "ignore",
},
);
console.log(" => journalism has been installed from JSR.");
execSync("deno install --node-modules-dir=auto --dev npm:rimraf", {
stdio: "ignore",
Expand Down Expand Up @@ -2567,7 +2570,7 @@ export default function getTempChange(
};
writeFileSync("package.json", JSON.stringify(packageJson, null, 2));
execSync(
"deno install --node-modules-dir=auto --allow-scripts=npm:duckdb",
"deno install --node-modules-dir=auto --allow-scripts=npm:playwright-chromium,npm:duckdb",
{
stdio: "ignore",
},
Expand Down Expand Up @@ -2838,15 +2841,18 @@ Toronto,2010.0,9.9
} else if (runtime === "deno") {
console.log("\n3 - Installing libraries with Deno...");
execSync(
"deno install --node-modules-dir=auto --allow-scripts=npm:duckdb jsr:@nshiab/simple-data-analysis",
"deno install --node-modules-dir=auto --allow-scripts=npm:playwright-chromium,npm:duckdb jsr:@nshiab/simple-data-analysis",
{
stdio: "ignore",
},
);
console.log(" => simple-data-analysis has been installed from JSR.");
execSync("deno install --node-modules-dir=auto jsr:@nshiab/journalism", {
stdio: "ignore",
});
execSync(
"deno install --node-modules-dir=auto --allow-scripts=npm:playwright-chromium jsr:@nshiab/journalism",
{
stdio: "ignore",
},
);
console.log(" => journalism has been installed JSR.");
}

Expand Down

0 comments on commit 3d5b10c

Please sign in to comment.