@bagelink/workspace 1.15.527 → 1.15.531
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 +33 -10
- package/dist/bin/bgl.mjs +33 -10
- package/dist/shared/{workspace.BshPcRI_.cjs → workspace.DCiN_FtT.cjs} +0 -2
- package/dist/shared/{workspace.Bhp9XbPk.mjs → workspace.Dhg5QE-j.mjs} +0 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +6 -10
- package/src/lint.ts +36 -13
- package/src/workspace.ts +0 -2
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.DCiN_FtT.cjs');
|
|
8
8
|
const node_fs = require('node:fs');
|
|
9
9
|
const prompts = require('prompts');
|
|
10
10
|
|
|
@@ -469,7 +469,7 @@ async function setupLint(root = process__default.cwd(), isWorkspace = false) {
|
|
|
469
469
|
updatePackageJsonLint(root, configs);
|
|
470
470
|
if (installDeps) {
|
|
471
471
|
console.log("\n\u{1F4E6} Installing dependencies...");
|
|
472
|
-
console.log("Run: bun add -D @
|
|
472
|
+
console.log("Run: bun add -D eslint @eslint/js typescript typescript-eslint eslint-plugin-vue globals prettier");
|
|
473
473
|
}
|
|
474
474
|
console.log("\n\u2705 Linting setup complete!");
|
|
475
475
|
console.log("\nAvailable commands:");
|
|
@@ -480,15 +480,38 @@ async function setupLint(root = process__default.cwd(), isWorkspace = false) {
|
|
|
480
480
|
}
|
|
481
481
|
function createEslintConfig(root, isWorkspace) {
|
|
482
482
|
const configPath = node_path.resolve(root, "eslint.config.js");
|
|
483
|
-
const
|
|
483
|
+
const ignores = isWorkspace ? `['**/dist/**', '**/node_modules/**', '**/.bun-cache/**', '**/build/**']` : `['**/node_modules/**', '**/dist/**', '**/build/**']`;
|
|
484
|
+
const config = `import js from '@eslint/js'
|
|
485
|
+
import tsEslint from 'typescript-eslint'
|
|
486
|
+
import pluginVue from 'eslint-plugin-vue'
|
|
487
|
+
import { parser as tsParser } from 'typescript-eslint'
|
|
488
|
+
import globals from 'globals'
|
|
484
489
|
|
|
485
|
-
export default
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
export default [
|
|
491
|
+
{
|
|
492
|
+
ignores: ${ignores},
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
languageOptions: {
|
|
496
|
+
globals: {
|
|
497
|
+
...globals.browser,
|
|
498
|
+
...globals.node,
|
|
499
|
+
...globals.es2021,
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
js.configs.recommended,
|
|
504
|
+
...tsEslint.configs.recommended,
|
|
505
|
+
...pluginVue.configs['flat/essential'],
|
|
506
|
+
{
|
|
507
|
+
files: ['**/*.vue'],
|
|
508
|
+
languageOptions: {
|
|
509
|
+
parserOptions: {
|
|
510
|
+
parser: tsParser,
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
]
|
|
492
515
|
`;
|
|
493
516
|
node_fs.writeFileSync(configPath, config);
|
|
494
517
|
console.log("\u2705 Created eslint.config.js");
|
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.Dhg5QE-j.mjs';
|
|
6
6
|
import { existsSync, readFileSync, readdirSync, writeFileSync, unlinkSync, mkdirSync, rmSync } from 'node:fs';
|
|
7
7
|
import prompts from 'prompts';
|
|
8
8
|
|
|
@@ -462,7 +462,7 @@ async function setupLint(root = process.cwd(), isWorkspace = false) {
|
|
|
462
462
|
updatePackageJsonLint(root, configs);
|
|
463
463
|
if (installDeps) {
|
|
464
464
|
console.log("\n\u{1F4E6} Installing dependencies...");
|
|
465
|
-
console.log("Run: bun add -D @
|
|
465
|
+
console.log("Run: bun add -D eslint @eslint/js typescript typescript-eslint eslint-plugin-vue globals prettier");
|
|
466
466
|
}
|
|
467
467
|
console.log("\n\u2705 Linting setup complete!");
|
|
468
468
|
console.log("\nAvailable commands:");
|
|
@@ -473,15 +473,38 @@ async function setupLint(root = process.cwd(), isWorkspace = false) {
|
|
|
473
473
|
}
|
|
474
474
|
function createEslintConfig(root, isWorkspace) {
|
|
475
475
|
const configPath = resolve(root, "eslint.config.js");
|
|
476
|
-
const
|
|
476
|
+
const ignores = isWorkspace ? `['**/dist/**', '**/node_modules/**', '**/.bun-cache/**', '**/build/**']` : `['**/node_modules/**', '**/dist/**', '**/build/**']`;
|
|
477
|
+
const config = `import js from '@eslint/js'
|
|
478
|
+
import tsEslint from 'typescript-eslint'
|
|
479
|
+
import pluginVue from 'eslint-plugin-vue'
|
|
480
|
+
import { parser as tsParser } from 'typescript-eslint'
|
|
481
|
+
import globals from 'globals'
|
|
477
482
|
|
|
478
|
-
export default
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
export default [
|
|
484
|
+
{
|
|
485
|
+
ignores: ${ignores},
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
languageOptions: {
|
|
489
|
+
globals: {
|
|
490
|
+
...globals.browser,
|
|
491
|
+
...globals.node,
|
|
492
|
+
...globals.es2021,
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
js.configs.recommended,
|
|
497
|
+
...tsEslint.configs.recommended,
|
|
498
|
+
...pluginVue.configs['flat/essential'],
|
|
499
|
+
{
|
|
500
|
+
files: ['**/*.vue'],
|
|
501
|
+
languageOptions: {
|
|
502
|
+
parserOptions: {
|
|
503
|
+
parser: tsParser,
|
|
504
|
+
},
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
]
|
|
485
508
|
`;
|
|
486
509
|
writeFileSync(configPath, config);
|
|
487
510
|
console.log("\u2705 Created eslint.config.js");
|
|
@@ -62,7 +62,6 @@ async function initWorkspace(root = process__default.cwd()) {
|
|
|
62
62
|
"pinia",
|
|
63
63
|
"vue",
|
|
64
64
|
"vue-router",
|
|
65
|
-
"@bagelink/lint-config",
|
|
66
65
|
"@bagelink/workspace",
|
|
67
66
|
"@vitejs/plugin-vue",
|
|
68
67
|
"eslint",
|
|
@@ -116,7 +115,6 @@ function createWorkspaceRoot(root, name, projectId, versions) {
|
|
|
116
115
|
"vue-router": versions["vue-router"]
|
|
117
116
|
},
|
|
118
117
|
devDependencies: {
|
|
119
|
-
"@bagelink/lint-config": versions["@bagelink/lint-config"],
|
|
120
118
|
"@bagelink/workspace": versions["@bagelink/workspace"],
|
|
121
119
|
"@vitejs/plugin-vue": versions["@vitejs/plugin-vue"],
|
|
122
120
|
"eslint": versions.eslint,
|
|
@@ -55,7 +55,6 @@ async function initWorkspace(root = process.cwd()) {
|
|
|
55
55
|
"pinia",
|
|
56
56
|
"vue",
|
|
57
57
|
"vue-router",
|
|
58
|
-
"@bagelink/lint-config",
|
|
59
58
|
"@bagelink/workspace",
|
|
60
59
|
"@vitejs/plugin-vue",
|
|
61
60
|
"eslint",
|
|
@@ -109,7 +108,6 @@ function createWorkspaceRoot(root, name, projectId, versions) {
|
|
|
109
108
|
"vue-router": versions["vue-router"]
|
|
110
109
|
},
|
|
111
110
|
devDependencies: {
|
|
112
|
-
"@bagelink/lint-config": versions["@bagelink/lint-config"],
|
|
113
111
|
"@bagelink/workspace": versions["@bagelink/workspace"],
|
|
114
112
|
"@vitejs/plugin-vue": versions["@vitejs/plugin-vue"],
|
|
115
113
|
"eslint": versions.eslint,
|
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.DCiN_FtT.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.Dhg5QE-j.mjs';
|
|
5
|
+
export { g as generateNetlifyConfig, s as setBuildEnvVars, w as writeNetlifyConfig } from './shared/workspace.Dhg5QE-j.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'prompts';
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/workspace",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.531",
|
|
5
5
|
"description": "Monorepo workspace tooling for Bagel projects with proxy and config management",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bagel Studio",
|
|
@@ -73,25 +73,21 @@
|
|
|
73
73
|
"prompts": "^2.4.2"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@bagelink/lint-config": ">=1.0.0",
|
|
77
76
|
"@bagelink/sdk": ">=1.0.0",
|
|
78
77
|
"vite": ">=5.0.0"
|
|
79
78
|
},
|
|
80
79
|
"peerDependenciesMeta": {
|
|
81
|
-
"@bagelink/lint-config": {
|
|
82
|
-
"optional": true
|
|
83
|
-
},
|
|
84
80
|
"@bagelink/sdk": {
|
|
85
81
|
"optional": true
|
|
86
82
|
}
|
|
87
83
|
},
|
|
88
84
|
"devDependencies": {
|
|
89
|
-
"@types/bun": "^1.
|
|
90
|
-
"@types/node": "^
|
|
85
|
+
"@types/bun": "^1.4.2",
|
|
86
|
+
"@types/node": "^25.9.8",
|
|
91
87
|
"@types/prompts": "^2.4.9",
|
|
92
|
-
"rimraf": "^6.
|
|
93
|
-
"typescript": "^5.
|
|
94
|
-
"unbuild": "^3.
|
|
88
|
+
"rimraf": "^6.1.3",
|
|
89
|
+
"typescript": "^5.9.3",
|
|
90
|
+
"unbuild": "^3.6.1"
|
|
95
91
|
},
|
|
96
92
|
"scripts": {
|
|
97
93
|
"dev": "unbuild --stub",
|
package/src/lint.ts
CHANGED
|
@@ -99,7 +99,7 @@ export async function setupLint(
|
|
|
99
99
|
|
|
100
100
|
if (installDeps) {
|
|
101
101
|
console.log('\n📦 Installing dependencies...')
|
|
102
|
-
console.log('Run: bun add -D @
|
|
102
|
+
console.log('Run: bun add -D eslint @eslint/js typescript typescript-eslint eslint-plugin-vue globals prettier')
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
console.log('\n✅ Linting setup complete!')
|
|
@@ -115,18 +115,41 @@ export async function setupLint(
|
|
|
115
115
|
*/
|
|
116
116
|
function createEslintConfig(root: string, isWorkspace: boolean): void {
|
|
117
117
|
const configPath = resolve(root, 'eslint.config.js')
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
const ignores = isWorkspace
|
|
119
|
+
? `['**/dist/**', '**/node_modules/**', '**/.bun-cache/**', '**/build/**']`
|
|
120
|
+
: `['**/node_modules/**', '**/dist/**', '**/build/**']`
|
|
121
|
+
|
|
122
|
+
const config = `import js from '@eslint/js'
|
|
123
|
+
import tsEslint from 'typescript-eslint'
|
|
124
|
+
import pluginVue from 'eslint-plugin-vue'
|
|
125
|
+
import { parser as tsParser } from 'typescript-eslint'
|
|
126
|
+
import globals from 'globals'
|
|
127
|
+
|
|
128
|
+
export default [
|
|
129
|
+
{
|
|
130
|
+
ignores: ${ignores},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
languageOptions: {
|
|
134
|
+
globals: {
|
|
135
|
+
...globals.browser,
|
|
136
|
+
...globals.node,
|
|
137
|
+
...globals.es2021,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
js.configs.recommended,
|
|
142
|
+
...tsEslint.configs.recommended,
|
|
143
|
+
...pluginVue.configs['flat/essential'],
|
|
144
|
+
{
|
|
145
|
+
files: ['**/*.vue'],
|
|
146
|
+
languageOptions: {
|
|
147
|
+
parserOptions: {
|
|
148
|
+
parser: tsParser,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
]
|
|
130
153
|
`
|
|
131
154
|
|
|
132
155
|
writeFileSync(configPath, config)
|
package/src/workspace.ts
CHANGED
|
@@ -66,7 +66,6 @@ export async function initWorkspace(root: string = process.cwd()): Promise<void>
|
|
|
66
66
|
'pinia',
|
|
67
67
|
'vue',
|
|
68
68
|
'vue-router',
|
|
69
|
-
'@bagelink/lint-config',
|
|
70
69
|
'@bagelink/workspace',
|
|
71
70
|
'@vitejs/plugin-vue',
|
|
72
71
|
'eslint',
|
|
@@ -135,7 +134,6 @@ function createWorkspaceRoot(root: string, name: string, projectId: string, vers
|
|
|
135
134
|
'vue-router': versions['vue-router'],
|
|
136
135
|
},
|
|
137
136
|
devDependencies: {
|
|
138
|
-
'@bagelink/lint-config': versions['@bagelink/lint-config'],
|
|
139
137
|
'@bagelink/workspace': versions['@bagelink/workspace'],
|
|
140
138
|
'@vitejs/plugin-vue': versions['@vitejs/plugin-vue'],
|
|
141
139
|
'eslint': versions.eslint,
|