@archetypeai/ds-cli 0.3.18 → 0.3.19
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/lib/add-ds-ui-svelte.js
CHANGED
|
@@ -59,7 +59,7 @@ export async function addDsUiSvelte() {
|
|
|
59
59
|
await execFileAsync(
|
|
60
60
|
dlxCmd,
|
|
61
61
|
[...dlxArgs, 'shadcn-svelte@latest', 'add', ...componentUrls, '--yes', '--overwrite'],
|
|
62
|
-
{ stdio: 'pipe', cwd: projectDir }
|
|
62
|
+
{ stdio: 'pipe', maxBuffer: 10 * 1024 * 1024, cwd: projectDir }
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
installSpinner.stop('All components installed');
|
|
@@ -9,7 +9,7 @@ const execFileAsync = promisify(execFile);
|
|
|
9
9
|
|
|
10
10
|
// run a command without a shell to prevent injection
|
|
11
11
|
async function run(command, args, opts) {
|
|
12
|
-
await execFileAsync(command, args, { stdio: 'pipe', ...opts });
|
|
12
|
+
await execFileAsync(command, args, { stdio: 'pipe', maxBuffer: 10 * 1024 * 1024, ...opts });
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// write a file
|
|
@@ -95,19 +95,16 @@ export async function initShadcn(pm, projectPath) {
|
|
|
95
95
|
try {
|
|
96
96
|
const componentsJson = {
|
|
97
97
|
$schema: 'https://shadcn-svelte.com/schema.json',
|
|
98
|
-
style: 'default',
|
|
99
98
|
tailwind: {
|
|
100
|
-
config: '',
|
|
101
99
|
css: 'src/routes/layout.css',
|
|
102
|
-
baseColor: 'slate'
|
|
103
|
-
cssVariables: true,
|
|
104
|
-
prefix: ''
|
|
100
|
+
baseColor: 'slate'
|
|
105
101
|
},
|
|
106
102
|
aliases: {
|
|
107
103
|
utils: '$lib/utils',
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
ui: '$lib/components/ui',
|
|
105
|
+
components: '$lib/components',
|
|
106
|
+
hooks: '$lib/hooks',
|
|
107
|
+
lib: '$lib'
|
|
111
108
|
},
|
|
112
109
|
typescript: false
|
|
113
110
|
};
|
|
@@ -218,9 +215,7 @@ export async function installComponents(pm, projectPath, componentUrls) {
|
|
|
218
215
|
await run(
|
|
219
216
|
dlxCmd,
|
|
220
217
|
[...dlxArgs, 'shadcn-svelte@latest', 'add', ...urls, '--yes', '--overwrite'],
|
|
221
|
-
{
|
|
222
|
-
cwd: projectPath
|
|
223
|
-
}
|
|
218
|
+
{ cwd: projectPath }
|
|
224
219
|
);
|
|
225
220
|
|
|
226
221
|
const [installCmd, ...installArgs] = splitCmd(pm.install);
|