create-brepjs 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/create-brepjs.mjs
CHANGED
|
@@ -51,6 +51,9 @@ async function main() {
|
|
|
51
51
|
const pkg = JSON.parse(await readFile(pkgPath, 'utf8'));
|
|
52
52
|
pkg.name = base;
|
|
53
53
|
await writeFile(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
|
|
54
|
+
const readmePath = join(target, 'README.md');
|
|
55
|
+
const readme = await readFile(readmePath, 'utf8');
|
|
56
|
+
await writeFile(readmePath, readme.replace('# brepjs-app', `# ${base}`));
|
|
54
57
|
|
|
55
58
|
console.warn(`Scaffolded ${target}`);
|
|
56
59
|
console.warn('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-brepjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Scaffold a brepjs + brepjs-families project (npm create brepjs)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
],
|
|
11
11
|
"type": "module",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "vitest run"
|
|
15
|
+
},
|
|
13
16
|
"repository": {
|
|
14
17
|
"type": "git",
|
|
15
18
|
"url": "git+https://github.com/andymai/brepjs.git",
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"brepjs": "^18.0.0",
|
|
11
|
-
"brepjs-families": "
|
|
11
|
+
"brepjs-families": ">=0.8.0 <1.0.0",
|
|
12
|
+
"occt-wasm": "^4.0.0",
|
|
12
13
|
"zod": "^4.0.0"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
16
|
+
"@types/node": "^24.0.0",
|
|
15
17
|
"tsx": "^4.0.0",
|
|
16
|
-
"typescript": "^5.0.0"
|
|
18
|
+
"typescript": "^5.2.0 || ^6.0.0"
|
|
17
19
|
}
|
|
18
20
|
}
|
package/templates/tsconfig.json
CHANGED