@bagelink/workspace 1.10.27 → 1.10.29
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/bin/bgl.cjs +1 -1
- package/dist/bin/bgl.mjs +1 -1
- package/dist/shared/{workspace.CSBtD5Cu.cjs → workspace.CbSngeyq.cjs} +21 -1
- package/dist/shared/{workspace.A649z5ed.mjs → workspace.Hoo0tj7x.mjs} +21 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +1 -1
- package/src/workspace.ts +23 -1
package/dist/bin/bgl.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const node_path = require('node:path');
|
|
5
5
|
const process = require('node:process');
|
|
6
6
|
const node_child_process = require('node:child_process');
|
|
7
|
-
const netlify = require('../shared/workspace.
|
|
7
|
+
const netlify = require('../shared/workspace.CbSngeyq.cjs');
|
|
8
8
|
const node_fs = require('node:fs');
|
|
9
9
|
const prompts = require('prompts');
|
|
10
10
|
|
package/dist/bin/bgl.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
import process from 'node:process';
|
|
4
4
|
import { spawn } from 'node:child_process';
|
|
5
|
-
import { l as listProjects, w as writeNetlifyConfig, i as initWorkspace, a as addProject } from '../shared/workspace.
|
|
5
|
+
import { l as listProjects, w as writeNetlifyConfig, i as initWorkspace, a as addProject } from '../shared/workspace.Hoo0tj7x.mjs';
|
|
6
6
|
import { existsSync, readFileSync, readdirSync, writeFileSync, unlinkSync, mkdirSync } from 'node:fs';
|
|
7
7
|
import prompts from 'prompts';
|
|
8
8
|
|
|
@@ -361,12 +361,18 @@ export default defineWorkspace({
|
|
|
361
361
|
})
|
|
362
362
|
`;
|
|
363
363
|
node_fs.writeFileSync(node_path.resolve(projectDir, "bgl.config.ts"), bglConfigContent);
|
|
364
|
-
const viteConfig = `import {
|
|
364
|
+
const viteConfig = `import { resolve } from 'node:path'
|
|
365
|
+
import { defineConfig } from 'vite'
|
|
365
366
|
import vue from '@vitejs/plugin-vue'
|
|
366
367
|
import { bagelink } from '@bagelink/workspace/vite'
|
|
367
368
|
import workspace from './bgl.config'
|
|
368
369
|
|
|
369
370
|
export default defineConfig({
|
|
371
|
+
resolve: {
|
|
372
|
+
alias: {
|
|
373
|
+
'@': resolve(__dirname, 'src'),
|
|
374
|
+
},
|
|
375
|
+
},
|
|
370
376
|
plugins: [
|
|
371
377
|
vue(),
|
|
372
378
|
bagelink({ workspace }),
|
|
@@ -374,6 +380,20 @@ export default defineConfig({
|
|
|
374
380
|
})
|
|
375
381
|
`;
|
|
376
382
|
node_fs.writeFileSync(node_path.resolve(projectDir, "vite.config.ts"), viteConfig);
|
|
383
|
+
const tsconfigJson = {
|
|
384
|
+
extends: "../tsconfig.app.json",
|
|
385
|
+
compilerOptions: {
|
|
386
|
+
paths: {
|
|
387
|
+
"@/*": ["./src/*"]
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
include: ["src/**/*"]
|
|
391
|
+
};
|
|
392
|
+
node_fs.writeFileSync(
|
|
393
|
+
node_path.resolve(projectDir, "tsconfig.json"),
|
|
394
|
+
`${JSON.stringify(tsconfigJson, null, 2)}
|
|
395
|
+
`
|
|
396
|
+
);
|
|
377
397
|
const srcDir = node_path.resolve(projectDir, "src");
|
|
378
398
|
node_fs.mkdirSync(srcDir, { recursive: true });
|
|
379
399
|
const indexHtml = `<!DOCTYPE html>
|
|
@@ -354,12 +354,18 @@ export default defineWorkspace({
|
|
|
354
354
|
})
|
|
355
355
|
`;
|
|
356
356
|
writeFileSync(resolve(projectDir, "bgl.config.ts"), bglConfigContent);
|
|
357
|
-
const viteConfig = `import {
|
|
357
|
+
const viteConfig = `import { resolve } from 'node:path'
|
|
358
|
+
import { defineConfig } from 'vite'
|
|
358
359
|
import vue from '@vitejs/plugin-vue'
|
|
359
360
|
import { bagelink } from '@bagelink/workspace/vite'
|
|
360
361
|
import workspace from './bgl.config'
|
|
361
362
|
|
|
362
363
|
export default defineConfig({
|
|
364
|
+
resolve: {
|
|
365
|
+
alias: {
|
|
366
|
+
'@': resolve(__dirname, 'src'),
|
|
367
|
+
},
|
|
368
|
+
},
|
|
363
369
|
plugins: [
|
|
364
370
|
vue(),
|
|
365
371
|
bagelink({ workspace }),
|
|
@@ -367,6 +373,20 @@ export default defineConfig({
|
|
|
367
373
|
})
|
|
368
374
|
`;
|
|
369
375
|
writeFileSync(resolve(projectDir, "vite.config.ts"), viteConfig);
|
|
376
|
+
const tsconfigJson = {
|
|
377
|
+
extends: "../tsconfig.app.json",
|
|
378
|
+
compilerOptions: {
|
|
379
|
+
paths: {
|
|
380
|
+
"@/*": ["./src/*"]
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
include: ["src/**/*"]
|
|
384
|
+
};
|
|
385
|
+
writeFileSync(
|
|
386
|
+
resolve(projectDir, "tsconfig.json"),
|
|
387
|
+
`${JSON.stringify(tsconfigJson, null, 2)}
|
|
388
|
+
`
|
|
389
|
+
);
|
|
370
390
|
const srcDir = resolve(projectDir, "src");
|
|
371
391
|
mkdirSync(srcDir, { recursive: true });
|
|
372
392
|
const indexHtml = `<!DOCTYPE html>
|
package/dist/vite.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const node_path = require('node:path');
|
|
4
4
|
const process = require('node:process');
|
|
5
5
|
const node_url = require('node:url');
|
|
6
|
-
const netlify = require('./shared/workspace.
|
|
6
|
+
const netlify = require('./shared/workspace.CbSngeyq.cjs');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('prompts');
|
|
9
9
|
|
package/dist/vite.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { basename } from 'node:path';
|
|
2
2
|
import process from 'node:process';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import { l as listProjects } from './shared/workspace.
|
|
5
|
-
export { g as generateNetlifyConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.
|
|
4
|
+
import { l as listProjects } from './shared/workspace.Hoo0tj7x.mjs';
|
|
5
|
+
export { g as generateNetlifyConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.Hoo0tj7x.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'prompts';
|
|
8
8
|
|
package/package.json
CHANGED
package/src/workspace.ts
CHANGED
|
@@ -429,12 +429,18 @@ export default defineWorkspace({
|
|
|
429
429
|
writeFileSync(resolve(projectDir, 'bgl.config.ts'), bglConfigContent)
|
|
430
430
|
|
|
431
431
|
// vite.config.ts
|
|
432
|
-
const viteConfig = `import {
|
|
432
|
+
const viteConfig = `import { resolve } from 'node:path'
|
|
433
|
+
import { defineConfig } from 'vite'
|
|
433
434
|
import vue from '@vitejs/plugin-vue'
|
|
434
435
|
import { bagelink } from '@bagelink/workspace/vite'
|
|
435
436
|
import workspace from './bgl.config'
|
|
436
437
|
|
|
437
438
|
export default defineConfig({
|
|
439
|
+
resolve: {
|
|
440
|
+
alias: {
|
|
441
|
+
'@': resolve(__dirname, 'src'),
|
|
442
|
+
},
|
|
443
|
+
},
|
|
438
444
|
plugins: [
|
|
439
445
|
vue(),
|
|
440
446
|
bagelink({ workspace }),
|
|
@@ -444,6 +450,22 @@ export default defineConfig({
|
|
|
444
450
|
|
|
445
451
|
writeFileSync(resolve(projectDir, 'vite.config.ts'), viteConfig)
|
|
446
452
|
|
|
453
|
+
// tsconfig.json
|
|
454
|
+
const tsconfigJson = {
|
|
455
|
+
extends: '../tsconfig.app.json',
|
|
456
|
+
compilerOptions: {
|
|
457
|
+
paths: {
|
|
458
|
+
'@/*': ['./src/*'],
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
include: ['src/**/*'],
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
writeFileSync(
|
|
465
|
+
resolve(projectDir, 'tsconfig.json'),
|
|
466
|
+
`${JSON.stringify(tsconfigJson, null, 2)}\n`,
|
|
467
|
+
)
|
|
468
|
+
|
|
447
469
|
// Create basic src structure
|
|
448
470
|
const srcDir = resolve(projectDir, 'src')
|
|
449
471
|
mkdirSync(srcDir, { recursive: true })
|