Skip to content

Commit 77e87a4

Browse files
committed
test workspace
Signed-off-by: Logan McAnsh <[email protected]>
1 parent c549c13 commit 77e87a4

File tree

81 files changed

+264
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+264
-82
lines changed

__scripts/name.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import path from "node:path";
2+
3+
import PackageJson from "@npmcli/package-json";
4+
import fse from "fs-extra";
5+
6+
const entries = await fse.readdir(process.cwd(), { withFileTypes: true });
7+
const examples = entries
8+
.filter((entry) => entry.isDirectory())
9+
.map((entry) => entry.name)
10+
.filter((entry) =>
11+
fse.existsSync(path.join(process.cwd(), entry, "package.json"))
12+
);
13+
14+
for (const example of examples) {
15+
const pkgJson = await PackageJson.load(example);
16+
pkgJson.update({
17+
name: path.basename(path.join(process.cwd(), example)),
18+
version: "0.0.0",
19+
...pkgJson.content,
20+
});
21+
await pkgJson.save();
22+
}

__template/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
},
2626
"engines": {
2727
"node": ">=14"
28-
}
28+
},
29+
"name": "__template",
30+
"version": "0.0.0"
2931
}

_official-blog-tutorial/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,7 @@
8686
},
8787
"prisma": {
8888
"seed": "ts-node --require tsconfig-paths/register prisma/seed.ts"
89-
}
89+
},
90+
"name": "_official-blog-tutorial",
91+
"version": "0.0.0"
9092
}

_official-jokes/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@
3333
},
3434
"prisma": {
3535
"seed": "node --require esbuild-register prisma/seed.ts"
36-
}
36+
},
37+
"name": "_official-jokes",
38+
"version": "0.0.0"
3739
}

_official-realtime-app/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@
3636
},
3737
"engines": {
3838
"node": ">=14"
39-
}
39+
},
40+
"name": "_official-realtime-app",
41+
"version": "0.0.0"
4042
}

_official-tutorial/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@
2828
},
2929
"engines": {
3030
"node": ">=14"
31-
}
31+
},
32+
"name": "_official-tutorial",
33+
"version": "0.0.0"
3234
}

basic/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
},
2626
"engines": {
2727
"node": ">=14"
28-
}
28+
},
29+
"name": "basic",
30+
"version": "0.0.0"
2931
}

bullmq-task-queue/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@
2828
},
2929
"engines": {
3030
"node": ">=14"
31-
}
31+
},
32+
"name": "bullmq-task-queue",
33+
"version": "0.0.0"
3234
}

catch-boundary/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
},
2626
"engines": {
2727
"node": ">=14"
28-
}
28+
},
29+
"name": "catch-boundary",
30+
"version": "0.0.0"
2931
}

chakra-ui/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030
},
3131
"engines": {
3232
"node": ">=14"
33-
}
33+
},
34+
"name": "chakra-ui",
35+
"version": "0.0.0"
3436
}

0 commit comments

Comments
 (0)