@nathanramorim/forge-sdd 1.9.0-beta → 1.9.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/run.js +10 -0
- package/package.json +1 -4
package/bin/run.js
CHANGED
|
@@ -157,6 +157,16 @@ async function ensureBinary() {
|
|
|
157
157
|
fs.chmodSync(bin, 0o755);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
// Executa a tela de boas-vindas pós-instalação no primeiro download
|
|
161
|
+
try {
|
|
162
|
+
const postinstallPath = path.join(__dirname, 'postinstall.js');
|
|
163
|
+
if (fs.existsSync(postinstallPath)) {
|
|
164
|
+
execFileSync(process.execPath, [postinstallPath], { stdio: 'inherit' });
|
|
165
|
+
}
|
|
166
|
+
} catch (err) {
|
|
167
|
+
// Silencia qualquer erro de renderização para não bloquear o fluxo do CLI
|
|
168
|
+
}
|
|
169
|
+
|
|
160
170
|
return bin;
|
|
161
171
|
}
|
|
162
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathanramorim/forge-sdd",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "CLI que scaffolda estruturas Forge-SDD em segundos",
|
|
5
5
|
"homepage": "https://github.com/nathanramorim/forge-sdd",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,6 @@
|
|
|
17
17
|
"bin/postinstall.js",
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"postinstall": "node bin/postinstall.js"
|
|
22
|
-
},
|
|
23
20
|
"engines": {
|
|
24
21
|
"node": ">=18"
|
|
25
22
|
},
|