workspace-utils 1.0.0 → 1.0.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/dist/index.js +15460 -0
- package/dist/package.json +57 -0
- package/package.json +4 -1
- package/.github/workflows/mdbook.yml +0 -64
- package/.prettierignore +0 -22
- package/.prettierrc +0 -13
- package/docs/book.toml +0 -10
- package/docs/src/SUMMARY.md +0 -24
- package/docs/src/commands/build.md +0 -110
- package/docs/src/commands/dev.md +0 -118
- package/docs/src/commands/overview.md +0 -239
- package/docs/src/commands/run.md +0 -153
- package/docs/src/configuration.md +0 -249
- package/docs/src/examples.md +0 -567
- package/docs/src/installation.md +0 -148
- package/docs/src/introduction.md +0 -117
- package/docs/src/quick-start.md +0 -278
- package/docs/src/troubleshooting.md +0 -533
- package/index.ts +0 -84
- package/src/commands/build.ts +0 -158
- package/src/commands/dev.ts +0 -192
- package/src/commands/run.test.ts +0 -329
- package/src/commands/run.ts +0 -118
- package/src/core/dependency-graph.ts +0 -262
- package/src/core/process-runner.ts +0 -355
- package/src/core/workspace.test.ts +0 -404
- package/src/core/workspace.ts +0 -228
- package/src/package-managers/bun.test.ts +0 -209
- package/src/package-managers/bun.ts +0 -79
- package/src/package-managers/detector.test.ts +0 -199
- package/src/package-managers/detector.ts +0 -111
- package/src/package-managers/index.ts +0 -10
- package/src/package-managers/npm.ts +0 -79
- package/src/package-managers/pnpm.ts +0 -101
- package/src/package-managers/types.ts +0 -42
- package/src/utils/output.ts +0 -301
- package/src/utils/package-utils.ts +0 -243
- package/tests/bun-workspace/apps/web-app/package.json +0 -18
- package/tests/bun-workspace/bun.lockb +0 -0
- package/tests/bun-workspace/package.json +0 -18
- package/tests/bun-workspace/packages/shared-utils/package.json +0 -15
- package/tests/bun-workspace/packages/ui-components/package.json +0 -17
- package/tests/npm-workspace/package-lock.json +0 -0
- package/tests/npm-workspace/package.json +0 -18
- package/tests/npm-workspace/packages/core/package.json +0 -15
- package/tests/pnpm-workspace/package.json +0 -14
- package/tests/pnpm-workspace/packages/utils/package.json +0 -15
- package/tests/pnpm-workspace/pnpm-workspace.yaml +0 -3
- package/tsconfig.json +0 -29
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "test-workspace",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Test workspace for bunmono CLI tool",
|
|
5
|
-
"private": true,
|
|
6
|
-
"workspaces": [
|
|
7
|
-
"packages/*",
|
|
8
|
-
"apps/*"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "echo 'Building all packages...'",
|
|
12
|
-
"test": "echo 'Running all tests...'",
|
|
13
|
-
"dev": "echo 'Starting all dev servers...'"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"typescript": "^5.0.0"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@test/shared-utils",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Shared utilities package",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "echo 'Building shared-utils with Bun...' && sleep 2 && echo 'shared-utils build complete!'",
|
|
9
|
-
"dev": "echo 'Starting shared-utils dev server with Bun...' && while true; do echo '[shared-utils] Dev server running...'; sleep 5; done",
|
|
10
|
-
"test": "echo 'Running shared-utils tests with Bun...' && sleep 1 && echo 'shared-utils tests passed!'",
|
|
11
|
-
"lint": "echo 'Linting shared-utils with Bun...' && sleep 1 && echo 'shared-utils linting complete!'"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {},
|
|
14
|
-
"devDependencies": {}
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@test/ui-components",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "UI components library",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "echo 'Building ui-components with Bun...' && sleep 3 && echo 'ui-components build complete!'",
|
|
9
|
-
"dev": "echo 'Starting ui-components dev server with Bun...' && while true; do echo '[ui-components] Dev server running...'; sleep 4; done",
|
|
10
|
-
"test": "echo 'Running ui-components tests with Bun...' && sleep 2 && echo 'ui-components tests passed!'",
|
|
11
|
-
"lint": "echo 'Linting ui-components with Bun...' && sleep 1 && echo 'ui-components linting complete!'"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@test/shared-utils": "workspace:*"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {}
|
|
17
|
-
}
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "test-npm-workspace",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Test npm workspace for bunmono CLI tool",
|
|
5
|
-
"private": true,
|
|
6
|
-
"workspaces": [
|
|
7
|
-
"packages/*",
|
|
8
|
-
"apps/*"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "echo 'Building all packages with npm...'",
|
|
12
|
-
"test": "echo 'Running all tests with npm...'",
|
|
13
|
-
"dev": "echo 'Starting all dev servers with npm...'"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"typescript": "^5.0.0"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@test-npm/core",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Core package for npm workspace",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "echo 'Building core with npm...' && sleep 2 && echo 'core build complete!'",
|
|
9
|
-
"dev": "echo 'Starting core dev server with npm...' && while true; do echo '[core] Dev server running...'; sleep 5; done",
|
|
10
|
-
"test": "echo 'Running core tests with npm...' && sleep 1 && echo 'core tests passed!'",
|
|
11
|
-
"lint": "echo 'Linting core with npm...' && sleep 1 && echo 'core linting complete!'"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {},
|
|
14
|
-
"devDependencies": {}
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "test-pnpm-workspace",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Test pnpm workspace for bunmono CLI tool",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "echo 'Building all packages with pnpm...'",
|
|
8
|
-
"test": "echo 'Running all tests with pnpm...'",
|
|
9
|
-
"dev": "echo 'Starting all dev servers with pnpm...'"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "^5.0.0"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@test-pnpm/utils",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Utility functions package",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "echo 'Building utils with pnpm...' && sleep 2 && echo 'utils build complete!'",
|
|
9
|
-
"dev": "echo 'Starting utils dev server with pnpm...' && while true; do echo '[utils] Dev server running...'; sleep 5; done",
|
|
10
|
-
"test": "echo 'Running utils tests with pnpm...' && sleep 1 && echo 'utils tests passed!'",
|
|
11
|
-
"lint": "echo 'Linting utils with pnpm...' && sleep 1 && echo 'utils linting complete!'"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {},
|
|
14
|
-
"devDependencies": {}
|
|
15
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Environment setup & latest features
|
|
4
|
-
"lib": ["ESNext"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "Preserve",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
|
|
11
|
-
// Bundler mode
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
// Best practices
|
|
18
|
-
"strict": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedIndexedAccess": true,
|
|
22
|
-
"noImplicitOverride": true,
|
|
23
|
-
|
|
24
|
-
// Some stricter flags (disabled by default)
|
|
25
|
-
"noUnusedLocals": false,
|
|
26
|
-
"noUnusedParameters": false,
|
|
27
|
-
"noPropertyAccessFromIndexSignature": false
|
|
28
|
-
}
|
|
29
|
-
}
|