Skip to content

Commit

Permalink
fix .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
herudi committed Jul 1, 2024
1 parent 13f7577 commit 9ed8480
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
9 changes: 8 additions & 1 deletion bin/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import denoTemplate from "./templates/deno.js";
import nodeTemplate from "./templates/node.js";
import bunTemplate from "./templates/bun.js";

const NHTTP_VERSION = "2.0.0";
const NHTTP_VERSION = "2.0.2";

const RUNTIME_LIST = [
{
Expand Down Expand Up @@ -213,6 +213,13 @@ export async function createProject(param, cwd) {
for (const file of files) {
write(file);
}
if (runtimeName === "node") {
fs.writeFileSync(
path.join(root, ".npmrc"),
"@jsr:registry=https://npm.jsr.io",
{ encoding: "utf-8" },
);
}
const targetPath = path.join(root, "note.txt");
if (fs.existsSync(targetPath)) {
note = fs.readFileSync(targetPath, { encoding: "utf8", flag: "r" });
Expand Down
1 change: 0 additions & 1 deletion node/basic/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion node/mvc/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion node/preact-ssr/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion node/react-ssr/.npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-nhttp",
"version": "0.1.1",
"version": "0.1.2",
"description": "An Simple CLI for NHttp",
"type": "module",
"bin": {
Expand Down

0 comments on commit 9ed8480

Please sign in to comment.