workspace-utils 1.0.0 → 1.0.2

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.
Files changed (49) hide show
  1. package/dist/index.js +15464 -0
  2. package/dist/package.json +57 -0
  3. package/package.json +4 -1
  4. package/.github/workflows/mdbook.yml +0 -64
  5. package/.prettierignore +0 -22
  6. package/.prettierrc +0 -13
  7. package/docs/book.toml +0 -10
  8. package/docs/src/SUMMARY.md +0 -24
  9. package/docs/src/commands/build.md +0 -110
  10. package/docs/src/commands/dev.md +0 -118
  11. package/docs/src/commands/overview.md +0 -239
  12. package/docs/src/commands/run.md +0 -153
  13. package/docs/src/configuration.md +0 -249
  14. package/docs/src/examples.md +0 -567
  15. package/docs/src/installation.md +0 -148
  16. package/docs/src/introduction.md +0 -117
  17. package/docs/src/quick-start.md +0 -278
  18. package/docs/src/troubleshooting.md +0 -533
  19. package/index.ts +0 -84
  20. package/src/commands/build.ts +0 -158
  21. package/src/commands/dev.ts +0 -192
  22. package/src/commands/run.test.ts +0 -329
  23. package/src/commands/run.ts +0 -118
  24. package/src/core/dependency-graph.ts +0 -262
  25. package/src/core/process-runner.ts +0 -355
  26. package/src/core/workspace.test.ts +0 -404
  27. package/src/core/workspace.ts +0 -228
  28. package/src/package-managers/bun.test.ts +0 -209
  29. package/src/package-managers/bun.ts +0 -79
  30. package/src/package-managers/detector.test.ts +0 -199
  31. package/src/package-managers/detector.ts +0 -111
  32. package/src/package-managers/index.ts +0 -10
  33. package/src/package-managers/npm.ts +0 -79
  34. package/src/package-managers/pnpm.ts +0 -101
  35. package/src/package-managers/types.ts +0 -42
  36. package/src/utils/output.ts +0 -301
  37. package/src/utils/package-utils.ts +0 -243
  38. package/tests/bun-workspace/apps/web-app/package.json +0 -18
  39. package/tests/bun-workspace/bun.lockb +0 -0
  40. package/tests/bun-workspace/package.json +0 -18
  41. package/tests/bun-workspace/packages/shared-utils/package.json +0 -15
  42. package/tests/bun-workspace/packages/ui-components/package.json +0 -17
  43. package/tests/npm-workspace/package-lock.json +0 -0
  44. package/tests/npm-workspace/package.json +0 -18
  45. package/tests/npm-workspace/packages/core/package.json +0 -15
  46. package/tests/pnpm-workspace/package.json +0 -14
  47. package/tests/pnpm-workspace/packages/utils/package.json +0 -15
  48. package/tests/pnpm-workspace/pnpm-workspace.yaml +0 -3
  49. 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
- }
@@ -1,3 +0,0 @@
1
- packages:
2
- - 'packages/*'
3
- - 'apps/*'
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
- }