@nghitrum/dsforge 0.1.1 → 0.1.2
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/dist/cli/index.js +8 -3
- package/package.json +5 -1
package/dist/cli/index.js
CHANGED
|
@@ -5167,8 +5167,8 @@ import chalk4 from "chalk";
|
|
|
5167
5167
|
|
|
5168
5168
|
// src/cli/commands/showcase.ts
|
|
5169
5169
|
import path5 from "path";
|
|
5170
|
+
import { spawn } from "child_process";
|
|
5170
5171
|
import fs4 from "fs-extra";
|
|
5171
|
-
import { execSync } from "child_process";
|
|
5172
5172
|
async function runShowcase(cwd) {
|
|
5173
5173
|
logger.blank();
|
|
5174
5174
|
logger.section("dsforge showcase");
|
|
@@ -5180,8 +5180,13 @@ async function runShowcase(cwd) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
logger.step("Opening showcase...");
|
|
5182
5182
|
try {
|
|
5183
|
-
const cmd = process.platform === "darwin" ?
|
|
5184
|
-
|
|
5183
|
+
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "cmd" : "xdg-open";
|
|
5184
|
+
const args2 = process.platform === "win32" ? ["/c", "start", "", outPath] : [outPath];
|
|
5185
|
+
const child = spawn(cmd, args2, {
|
|
5186
|
+
detached: true,
|
|
5187
|
+
stdio: "ignore"
|
|
5188
|
+
});
|
|
5189
|
+
child.unref();
|
|
5185
5190
|
logger.success(`Opened dist-ds/showcase.html`);
|
|
5186
5191
|
} catch {
|
|
5187
5192
|
logger.hint("Could not auto-open. Open manually:", `dist-ds/showcase.html`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nghitrum/dsforge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI-native design system generator — tokens → components → docs → npm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"dist",
|
|
27
27
|
"templates"
|
|
28
28
|
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/nghitrum/dsforge"
|
|
32
|
+
},
|
|
29
33
|
"scripts": {
|
|
30
34
|
"build": "tsup",
|
|
31
35
|
"postbuild": "node -e \"const fs=require('fs'),f='dist/cli/index.js',c=fs.readFileSync(f,'utf8');if(!c.startsWith('#!/'))fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c);\" && chmod +x dist/cli/index.js",
|