@hyperfrontend/project-scope 0.2.1 → 0.2.3
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/CHANGELOG.md +14 -1
- package/README.md +3 -4
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/array/index.cjs.js +7 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/array/index.esm.js +5 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/console/index.cjs.js +13 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/console/index.esm.js +8 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/date/index.cjs.js +10 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/date/index.esm.js +8 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/error/index.cjs.js +6 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/error/index.esm.js +5 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/json/index.cjs.js +7 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/json/index.esm.js +5 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/map/index.cjs.js +6 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/map/index.esm.js +5 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/math/index.cjs.js +9 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/math/index.esm.js +6 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/number/index.cjs.js +7 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/number/index.esm.js +7 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/object/index.cjs.js +15 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/object/index.esm.js +9 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/set/index.cjs.js +6 -0
- package/_dependencies/@hyperfrontend/immutable-api-utils/built-in-copy/set/index.esm.js +5 -0
- package/_dependencies/@hyperfrontend/logging/index.cjs.js +191 -0
- package/_dependencies/@hyperfrontend/logging/index.d.ts +151 -0
- package/_dependencies/@hyperfrontend/logging/index.esm.js +186 -0
- package/_shared/core/cache/index.cjs.js +135 -0
- package/_shared/core/cache/index.esm.js +128 -0
- package/_shared/core/errors/structured-errors/index.cjs.js +28 -0
- package/_shared/core/errors/structured-errors/index.esm.js +23 -0
- package/_shared/core/fs/guard/index.cjs.js +7 -0
- package/_shared/core/fs/guard/index.esm.js +5 -0
- package/_shared/core/fs/stat/index.cjs.js +47 -0
- package/_shared/core/fs/stat/index.esm.js +41 -0
- package/_shared/core/path/confine/index.cjs.js +22 -0
- package/_shared/core/path/confine/index.esm.js +19 -0
- package/_shared/core/path/join/index.cjs.js +13 -0
- package/_shared/core/path/join/index.esm.js +10 -0
- package/_shared/core/path/normalize/index.cjs.js +37 -0
- package/_shared/core/path/normalize/index.esm.js +31 -0
- package/_shared/core/path/resolve/index.cjs.js +47 -0
- package/_shared/core/path/resolve/index.esm.js +41 -0
- package/_shared/core/path/segments/index.cjs.js +38 -0
- package/_shared/core/path/segments/index.esm.js +31 -0
- package/_shared/core/patterns/glob/index.cjs.js +145 -0
- package/_shared/core/patterns/glob/index.esm.js +136 -0
- package/_shared/core/platform/detect/index.cjs.js +103 -0
- package/_shared/core/platform/detect/index.esm.js +95 -0
- package/_shared/core/platform/line-endings/index.cjs.js +52 -0
- package/_shared/core/platform/line-endings/index.esm.js +44 -0
- package/_shared/project/config/patterns/index.cjs.js +172 -0
- package/_shared/project/config/patterns/index.esm.js +169 -0
- package/_shared/tech/monorepo/pnpm-workspaces/index.cjs.js +33 -0
- package/_shared/tech/monorepo/pnpm-workspaces/index.esm.js +31 -0
- package/_shared/tech/shared-utils/detector-helpers/index.cjs.js +48 -0
- package/_shared/tech/shared-utils/detector-helpers/index.esm.js +43 -0
- package/_shared/vfs/types/index.cjs.js +14 -0
- package/_shared/vfs/types/index.esm.js +12 -0
- package/cli/index.cjs.js +1706 -1910
- package/cli/index.d.ts +273 -7
- package/cli/index.d.ts.map +1 -1
- package/cli/index.esm.js +1593 -1797
- package/core/encoding/index.cjs.js +86 -401
- package/core/encoding/index.d.ts +186 -3
- package/core/encoding/index.d.ts.map +1 -1
- package/core/encoding/index.esm.js +78 -392
- package/core/fs/index.cjs.js +243 -583
- package/core/fs/index.d.ts +479 -6
- package/core/fs/index.d.ts.map +1 -1
- package/core/fs/index.esm.js +233 -573
- package/core/index.cjs.js +526 -1746
- package/core/index.d.ts +486 -9
- package/core/index.d.ts.map +1 -1
- package/core/index.esm.js +515 -1732
- package/core/path/index.cjs.js +8 -234
- package/core/path/index.d.ts +327 -5
- package/core/path/index.d.ts.map +1 -1
- package/core/path/index.esm.js +8 -235
- package/core/platform/index.cjs.js +5 -216
- package/core/platform/index.d.ts +185 -3
- package/core/platform/index.d.ts.map +1 -1
- package/core/platform/index.esm.js +3 -212
- package/heuristics/dependencies/index.cjs.js +105 -493
- package/heuristics/dependencies/index.d.ts +99 -2
- package/heuristics/dependencies/index.d.ts.map +1 -1
- package/heuristics/dependencies/index.esm.js +81 -469
- package/heuristics/entry-points/index.cjs.js +93 -796
- package/heuristics/entry-points/index.d.ts +123 -2
- package/heuristics/entry-points/index.d.ts.map +1 -1
- package/heuristics/entry-points/index.esm.js +74 -777
- package/heuristics/framework/index.cjs.js +1483 -1411
- package/heuristics/framework/index.d.ts +104 -2
- package/heuristics/framework/index.d.ts.map +1 -1
- package/heuristics/framework/index.esm.js +1419 -1347
- package/heuristics/index.cjs.js +3220 -3306
- package/heuristics/index.d.ts +4 -5
- package/heuristics/index.d.ts.map +1 -1
- package/heuristics/index.esm.js +3244 -3330
- package/heuristics/project-type/index.cjs.js +1489 -1438
- package/heuristics/project-type/index.d.ts +64 -2
- package/heuristics/project-type/index.d.ts.map +1 -1
- package/heuristics/project-type/index.esm.js +1419 -1368
- package/index.cjs.js +3058 -3532
- package/index.d.ts +44 -10
- package/index.d.ts.map +1 -1
- package/index.esm.js +2914 -3376
- package/models/index.cjs.js +0 -1
- package/models/index.d.ts +20 -14
- package/models/index.d.ts.map +1 -1
- package/models/index.esm.js +0 -1
- package/nx/index.cjs.js +166 -579
- package/nx/index.d.ts +279 -4
- package/nx/index.d.ts.map +1 -1
- package/nx/index.esm.js +148 -556
- package/package.json +13 -12
- package/project/config/index.cjs.js +127 -1063
- package/project/config/index.d.ts +202 -4
- package/project/config/index.d.ts.map +1 -1
- package/project/config/index.esm.js +110 -1044
- package/project/index.cjs.js +328 -1101
- package/project/index.d.ts +4 -5
- package/project/index.d.ts.map +1 -1
- package/project/index.esm.js +307 -1077
- package/project/package/index.cjs.js +196 -473
- package/project/package/index.d.ts +280 -3
- package/project/package/index.d.ts.map +1 -1
- package/project/package/index.esm.js +183 -459
- package/project/root/index.cjs.js +109 -417
- package/project/root/index.d.ts +83 -2
- package/project/root/index.d.ts.map +1 -1
- package/project/root/index.esm.js +98 -406
- package/project/traversal/index.cjs.js +96 -622
- package/project/traversal/index.d.ts +165 -3
- package/project/traversal/index.d.ts.map +1 -1
- package/project/traversal/index.esm.js +82 -608
- package/tech/backend/index.cjs.js +223 -508
- package/tech/backend/index.d.ts +205 -8
- package/tech/backend/index.d.ts.map +1 -1
- package/tech/backend/index.esm.js +202 -487
- package/tech/build/index.cjs.js +350 -636
- package/tech/build/index.d.ts +276 -10
- package/tech/build/index.d.ts.map +1 -1
- package/tech/build/index.esm.js +328 -614
- package/tech/frontend/index.cjs.js +507 -685
- package/tech/frontend/index.d.ts +379 -15
- package/tech/frontend/index.d.ts.map +1 -1
- package/tech/frontend/index.esm.js +483 -661
- package/tech/index.cjs.js +1581 -1420
- package/tech/index.d.ts +55 -32
- package/tech/index.d.ts.map +1 -1
- package/tech/index.esm.js +1515 -1354
- package/tech/legacy/index.cjs.js +99 -449
- package/tech/legacy/index.d.ts +125 -7
- package/tech/legacy/index.d.ts.map +1 -1
- package/tech/legacy/index.esm.js +81 -431
- package/tech/linting/index.cjs.js +138 -523
- package/tech/linting/index.d.ts +129 -7
- package/tech/linting/index.d.ts.map +1 -1
- package/tech/linting/index.esm.js +118 -503
- package/tech/monorepo/index.cjs.js +246 -573
- package/tech/monorepo/index.d.ts +241 -10
- package/tech/monorepo/index.d.ts.map +1 -1
- package/tech/monorepo/index.esm.js +226 -553
- package/tech/testing/index.cjs.js +216 -571
- package/tech/testing/index.d.ts +176 -8
- package/tech/testing/index.d.ts.map +1 -1
- package/tech/testing/index.esm.js +198 -553
- package/tech/types/index.cjs.js +123 -506
- package/tech/types/index.d.ts +120 -2
- package/tech/types/index.d.ts.map +1 -1
- package/tech/types/index.esm.js +101 -484
- package/vfs/index.cjs.js +647 -1142
- package/vfs/index.d.ts +360 -6
- package/vfs/index.d.ts.map +1 -1
- package/vfs/index.esm.js +672 -1167
- package/ARCHITECTURE.md +0 -370
- package/analyze.d.ts +0 -33
- package/analyze.d.ts.map +0 -1
- package/cli/commands/analyze.d.ts +0 -28
- package/cli/commands/analyze.d.ts.map +0 -1
- package/cli/commands/config.d.ts +0 -27
- package/cli/commands/config.d.ts.map +0 -1
- package/cli/commands/deps.d.ts +0 -24
- package/cli/commands/deps.d.ts.map +0 -1
- package/cli/commands/tree.d.ts +0 -36
- package/cli/commands/tree.d.ts.map +0 -1
- package/cli/index.cjs.js.map +0 -1
- package/cli/index.esm.js.map +0 -1
- package/cli/run.d.ts +0 -25
- package/cli/run.d.ts.map +0 -1
- package/cli/types.d.ts +0 -55
- package/cli/types.d.ts.map +0 -1
- package/core/cache.d.ts +0 -158
- package/core/cache.d.ts.map +0 -1
- package/core/encoding/convert.d.ts +0 -32
- package/core/encoding/convert.d.ts.map +0 -1
- package/core/encoding/detect.d.ts +0 -91
- package/core/encoding/detect.d.ts.map +0 -1
- package/core/encoding/index.cjs.js.map +0 -1
- package/core/encoding/index.esm.js.map +0 -1
- package/core/errors/structured-errors.d.ts +0 -66
- package/core/errors/structured-errors.d.ts.map +0 -1
- package/core/fs/directory.d.ts +0 -91
- package/core/fs/directory.d.ts.map +0 -1
- package/core/fs/index.cjs.js.map +0 -1
- package/core/fs/index.esm.js.map +0 -1
- package/core/fs/read.d.ts +0 -94
- package/core/fs/read.d.ts.map +0 -1
- package/core/fs/stat.d.ts +0 -58
- package/core/fs/stat.d.ts.map +0 -1
- package/core/fs/traversal.d.ts +0 -26
- package/core/fs/traversal.d.ts.map +0 -1
- package/core/fs/write.d.ts +0 -75
- package/core/fs/write.d.ts.map +0 -1
- package/core/index.cjs.js.map +0 -1
- package/core/index.esm.js.map +0 -1
- package/core/logger.d.ts +0 -111
- package/core/logger.d.ts.map +0 -1
- package/core/path/index.cjs.js.map +0 -1
- package/core/path/index.esm.js.map +0 -1
- package/core/path/join.d.ts +0 -17
- package/core/path/join.d.ts.map +0 -1
- package/core/path/normalize.d.ts +0 -37
- package/core/path/normalize.d.ts.map +0 -1
- package/core/path/resolve.d.ts +0 -52
- package/core/path/resolve.d.ts.map +0 -1
- package/core/path/segments.d.ts +0 -59
- package/core/path/segments.d.ts.map +0 -1
- package/core/patterns/glob.d.ts +0 -42
- package/core/patterns/glob.d.ts.map +0 -1
- package/core/platform/detect.d.ts +0 -66
- package/core/platform/detect.d.ts.map +0 -1
- package/core/platform/index.cjs.js.map +0 -1
- package/core/platform/index.esm.js.map +0 -1
- package/core/platform/line-endings.d.ts +0 -48
- package/core/platform/line-endings.d.ts.map +0 -1
- package/heuristics/dependencies/analyze.d.ts +0 -77
- package/heuristics/dependencies/analyze.d.ts.map +0 -1
- package/heuristics/dependencies/index.cjs.js.map +0 -1
- package/heuristics/dependencies/index.esm.js.map +0 -1
- package/heuristics/entry-points/discover.d.ts +0 -113
- package/heuristics/entry-points/discover.d.ts.map +0 -1
- package/heuristics/entry-points/index.cjs.js.map +0 -1
- package/heuristics/entry-points/index.esm.js.map +0 -1
- package/heuristics/framework/identify.d.ts +0 -84
- package/heuristics/framework/identify.d.ts.map +0 -1
- package/heuristics/framework/index.cjs.js.map +0 -1
- package/heuristics/framework/index.esm.js.map +0 -1
- package/heuristics/index.cjs.js.map +0 -1
- package/heuristics/index.esm.js.map +0 -1
- package/heuristics/project-type/detect.d.ts +0 -61
- package/heuristics/project-type/detect.d.ts.map +0 -1
- package/heuristics/project-type/index.cjs.js.map +0 -1
- package/heuristics/project-type/index.esm.js.map +0 -1
- package/index.cjs.js.map +0 -1
- package/index.esm.js.map +0 -1
- package/models/index.cjs.js.map +0 -1
- package/models/index.esm.js.map +0 -1
- package/nx/detect.d.ts +0 -105
- package/nx/detect.d.ts.map +0 -1
- package/nx/devkit-loader.d.ts +0 -62
- package/nx/devkit-loader.d.ts.map +0 -1
- package/nx/index.cjs.js.map +0 -1
- package/nx/index.esm.js.map +0 -1
- package/nx/project-config.d.ts +0 -111
- package/nx/project-config.d.ts.map +0 -1
- package/project/config/detect.d.ts +0 -77
- package/project/config/detect.d.ts.map +0 -1
- package/project/config/index.cjs.js.map +0 -1
- package/project/config/index.esm.js.map +0 -1
- package/project/config/parse.d.ts +0 -53
- package/project/config/parse.d.ts.map +0 -1
- package/project/config/patterns.d.ts +0 -31
- package/project/config/patterns.d.ts.map +0 -1
- package/project/index.cjs.js.map +0 -1
- package/project/index.esm.js.map +0 -1
- package/project/package/dependencies.d.ts +0 -101
- package/project/package/dependencies.d.ts.map +0 -1
- package/project/package/index.cjs.js.map +0 -1
- package/project/package/index.esm.js.map +0 -1
- package/project/package/read.d.ts +0 -67
- package/project/package/read.d.ts.map +0 -1
- package/project/root/detect.d.ts +0 -65
- package/project/root/detect.d.ts.map +0 -1
- package/project/root/index.cjs.js.map +0 -1
- package/project/root/index.esm.js.map +0 -1
- package/project/traversal/index.cjs.js.map +0 -1
- package/project/traversal/index.esm.js.map +0 -1
- package/project/traversal/search.d.ts +0 -59
- package/project/traversal/search.d.ts.map +0 -1
- package/project/traversal/walk.d.ts +0 -63
- package/project/traversal/walk.d.ts.map +0 -1
- package/tech/backend/detect-all.d.ts +0 -13
- package/tech/backend/detect-all.d.ts.map +0 -1
- package/tech/backend/express.d.ts +0 -11
- package/tech/backend/express.d.ts.map +0 -1
- package/tech/backend/fastify.d.ts +0 -11
- package/tech/backend/fastify.d.ts.map +0 -1
- package/tech/backend/hono.d.ts +0 -11
- package/tech/backend/hono.d.ts.map +0 -1
- package/tech/backend/index.cjs.js.map +0 -1
- package/tech/backend/index.esm.js.map +0 -1
- package/tech/backend/koa.d.ts +0 -11
- package/tech/backend/koa.d.ts.map +0 -1
- package/tech/backend/nestjs.d.ts +0 -11
- package/tech/backend/nestjs.d.ts.map +0 -1
- package/tech/backend/types.d.ts +0 -31
- package/tech/backend/types.d.ts.map +0 -1
- package/tech/build/babel.d.ts +0 -13
- package/tech/build/babel.d.ts.map +0 -1
- package/tech/build/detect-all.d.ts +0 -13
- package/tech/build/detect-all.d.ts.map +0 -1
- package/tech/build/esbuild.d.ts +0 -11
- package/tech/build/esbuild.d.ts.map +0 -1
- package/tech/build/index.cjs.js.map +0 -1
- package/tech/build/index.esm.js.map +0 -1
- package/tech/build/parcel.d.ts +0 -13
- package/tech/build/parcel.d.ts.map +0 -1
- package/tech/build/rollup.d.ts +0 -13
- package/tech/build/rollup.d.ts.map +0 -1
- package/tech/build/swc.d.ts +0 -13
- package/tech/build/swc.d.ts.map +0 -1
- package/tech/build/types.d.ts +0 -31
- package/tech/build/types.d.ts.map +0 -1
- package/tech/build/vite.d.ts +0 -13
- package/tech/build/vite.d.ts.map +0 -1
- package/tech/build/webpack.d.ts +0 -13
- package/tech/build/webpack.d.ts.map +0 -1
- package/tech/frontend/angular.d.ts +0 -11
- package/tech/frontend/angular.d.ts.map +0 -1
- package/tech/frontend/astro.d.ts +0 -11
- package/tech/frontend/astro.d.ts.map +0 -1
- package/tech/frontend/detect-all.d.ts +0 -13
- package/tech/frontend/detect-all.d.ts.map +0 -1
- package/tech/frontend/gatsby.d.ts +0 -11
- package/tech/frontend/gatsby.d.ts.map +0 -1
- package/tech/frontend/index.cjs.js.map +0 -1
- package/tech/frontend/index.esm.js.map +0 -1
- package/tech/frontend/nextjs.d.ts +0 -11
- package/tech/frontend/nextjs.d.ts.map +0 -1
- package/tech/frontend/nuxt.d.ts +0 -11
- package/tech/frontend/nuxt.d.ts.map +0 -1
- package/tech/frontend/qwik.d.ts +0 -11
- package/tech/frontend/qwik.d.ts.map +0 -1
- package/tech/frontend/react.d.ts +0 -11
- package/tech/frontend/react.d.ts.map +0 -1
- package/tech/frontend/remix.d.ts +0 -11
- package/tech/frontend/remix.d.ts.map +0 -1
- package/tech/frontend/solid.d.ts +0 -11
- package/tech/frontend/solid.d.ts.map +0 -1
- package/tech/frontend/svelte.d.ts +0 -11
- package/tech/frontend/svelte.d.ts.map +0 -1
- package/tech/frontend/sveltekit.d.ts +0 -11
- package/tech/frontend/sveltekit.d.ts.map +0 -1
- package/tech/frontend/types.d.ts +0 -35
- package/tech/frontend/types.d.ts.map +0 -1
- package/tech/frontend/vue.d.ts +0 -11
- package/tech/frontend/vue.d.ts.map +0 -1
- package/tech/index.cjs.js.map +0 -1
- package/tech/index.esm.js.map +0 -1
- package/tech/legacy/angularjs.d.ts +0 -12
- package/tech/legacy/angularjs.d.ts.map +0 -1
- package/tech/legacy/backbone.d.ts +0 -11
- package/tech/legacy/backbone.d.ts.map +0 -1
- package/tech/legacy/detect-all.d.ts +0 -13
- package/tech/legacy/detect-all.d.ts.map +0 -1
- package/tech/legacy/ember.d.ts +0 -11
- package/tech/legacy/ember.d.ts.map +0 -1
- package/tech/legacy/index.cjs.js.map +0 -1
- package/tech/legacy/index.esm.js.map +0 -1
- package/tech/legacy/jquery.d.ts +0 -11
- package/tech/legacy/jquery.d.ts.map +0 -1
- package/tech/legacy/types.d.ts +0 -33
- package/tech/legacy/types.d.ts.map +0 -1
- package/tech/linting/biome.d.ts +0 -11
- package/tech/linting/biome.d.ts.map +0 -1
- package/tech/linting/detect-all.d.ts +0 -13
- package/tech/linting/detect-all.d.ts.map +0 -1
- package/tech/linting/eslint.d.ts +0 -13
- package/tech/linting/eslint.d.ts.map +0 -1
- package/tech/linting/index.cjs.js.map +0 -1
- package/tech/linting/index.esm.js.map +0 -1
- package/tech/linting/prettier.d.ts +0 -13
- package/tech/linting/prettier.d.ts.map +0 -1
- package/tech/linting/stylelint.d.ts +0 -13
- package/tech/linting/stylelint.d.ts.map +0 -1
- package/tech/linting/types.d.ts +0 -31
- package/tech/linting/types.d.ts.map +0 -1
- package/tech/monorepo/detect-all.d.ts +0 -13
- package/tech/monorepo/detect-all.d.ts.map +0 -1
- package/tech/monorepo/index.cjs.js.map +0 -1
- package/tech/monorepo/index.esm.js.map +0 -1
- package/tech/monorepo/lerna.d.ts +0 -11
- package/tech/monorepo/lerna.d.ts.map +0 -1
- package/tech/monorepo/npm-workspaces.d.ts +0 -11
- package/tech/monorepo/npm-workspaces.d.ts.map +0 -1
- package/tech/monorepo/nx.d.ts +0 -11
- package/tech/monorepo/nx.d.ts.map +0 -1
- package/tech/monorepo/pnpm-workspaces.d.ts +0 -9
- package/tech/monorepo/pnpm-workspaces.d.ts.map +0 -1
- package/tech/monorepo/rush.d.ts +0 -11
- package/tech/monorepo/rush.d.ts.map +0 -1
- package/tech/monorepo/turborepo.d.ts +0 -11
- package/tech/monorepo/turborepo.d.ts.map +0 -1
- package/tech/monorepo/types.d.ts +0 -39
- package/tech/monorepo/types.d.ts.map +0 -1
- package/tech/monorepo/yarn-workspaces.d.ts +0 -11
- package/tech/monorepo/yarn-workspaces.d.ts.map +0 -1
- package/tech/shared-utils/detector-helpers.d.ts +0 -52
- package/tech/shared-utils/detector-helpers.d.ts.map +0 -1
- package/tech/shared-utils/types.d.ts +0 -41
- package/tech/shared-utils/types.d.ts.map +0 -1
- package/tech/testing/cypress.d.ts +0 -13
- package/tech/testing/cypress.d.ts.map +0 -1
- package/tech/testing/detect-all.d.ts +0 -13
- package/tech/testing/detect-all.d.ts.map +0 -1
- package/tech/testing/index.cjs.js.map +0 -1
- package/tech/testing/index.esm.js.map +0 -1
- package/tech/testing/jest.d.ts +0 -13
- package/tech/testing/jest.d.ts.map +0 -1
- package/tech/testing/mocha.d.ts +0 -13
- package/tech/testing/mocha.d.ts.map +0 -1
- package/tech/testing/playwright.d.ts +0 -13
- package/tech/testing/playwright.d.ts.map +0 -1
- package/tech/testing/types.d.ts +0 -35
- package/tech/testing/types.d.ts.map +0 -1
- package/tech/testing/vitest.d.ts +0 -13
- package/tech/testing/vitest.d.ts.map +0 -1
- package/tech/types/detectors.d.ts +0 -67
- package/tech/types/detectors.d.ts.map +0 -1
- package/tech/types/index.cjs.js.map +0 -1
- package/tech/types/index.esm.js.map +0 -1
- package/vfs/commit.d.ts +0 -32
- package/vfs/commit.d.ts.map +0 -1
- package/vfs/diff.d.ts +0 -73
- package/vfs/diff.d.ts.map +0 -1
- package/vfs/factory.d.ts +0 -37
- package/vfs/factory.d.ts.map +0 -1
- package/vfs/fs-tree.d.ts +0 -13
- package/vfs/fs-tree.d.ts.map +0 -1
- package/vfs/index.cjs.js.map +0 -1
- package/vfs/index.esm.js.map +0 -1
- package/vfs/types.d.ts +0 -179
- package/vfs/types.d.ts.map +0 -1
package/nx/index.d.ts
CHANGED
|
@@ -1,4 +1,279 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Files indicating NX workspace root.
|
|
3
|
+
*/
|
|
4
|
+
declare const NX_CONFIG_FILES: readonly ["nx.json", "workspace.json"];
|
|
5
|
+
/**
|
|
6
|
+
* NX-specific project file.
|
|
7
|
+
*/
|
|
8
|
+
declare const NX_PROJECT_FILE = "project.json";
|
|
9
|
+
/**
|
|
10
|
+
* NX workspace layout configuration.
|
|
11
|
+
*/
|
|
12
|
+
interface NxWorkspaceLayout {
|
|
13
|
+
/** Applications directory (default: 'apps') */
|
|
14
|
+
appsDir: string;
|
|
15
|
+
/** Libraries directory (default: 'libs') */
|
|
16
|
+
libsDir: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* nx.json configuration structure.
|
|
20
|
+
*/
|
|
21
|
+
interface NxJson {
|
|
22
|
+
/** Default project */
|
|
23
|
+
defaultProject?: string;
|
|
24
|
+
/** Workspace layout */
|
|
25
|
+
workspaceLayout?: Partial<NxWorkspaceLayout>;
|
|
26
|
+
/** Named inputs for caching */
|
|
27
|
+
namedInputs?: Record<string, unknown>;
|
|
28
|
+
/** Target defaults */
|
|
29
|
+
targetDefaults?: Record<string, unknown>;
|
|
30
|
+
/** NX Cloud access token */
|
|
31
|
+
nxCloudAccessToken?: string;
|
|
32
|
+
/** Plugins configuration */
|
|
33
|
+
plugins?: unknown[];
|
|
34
|
+
/** Task runner options */
|
|
35
|
+
tasksRunnerOptions?: Record<string, unknown>;
|
|
36
|
+
/** Default base */
|
|
37
|
+
defaultBase?: string;
|
|
38
|
+
/** Additional properties */
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* NX workspace information.
|
|
43
|
+
*/
|
|
44
|
+
interface NxWorkspaceInfo {
|
|
45
|
+
/** Workspace root path */
|
|
46
|
+
root: string;
|
|
47
|
+
/** NX version from package.json */
|
|
48
|
+
version: string | null;
|
|
49
|
+
/** Parsed nx.json */
|
|
50
|
+
nxJson: NxJson;
|
|
51
|
+
/** Whether this is an integrated repo (vs standalone) */
|
|
52
|
+
isIntegrated: boolean;
|
|
53
|
+
/** Default project name */
|
|
54
|
+
defaultProject?: string;
|
|
55
|
+
/** Workspace layout configuration */
|
|
56
|
+
workspaceLayout: NxWorkspaceLayout;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if directory is an NX workspace root.
|
|
60
|
+
*
|
|
61
|
+
* @param path - Directory path to check
|
|
62
|
+
* @returns True if the directory contains nx.json or workspace.json
|
|
63
|
+
*
|
|
64
|
+
* @example Checking for NX workspace
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import { isNxWorkspace } from '@hyperfrontend/project-scope'
|
|
67
|
+
*
|
|
68
|
+
* if (isNxWorkspace('./my-project')) {
|
|
69
|
+
* console.log('This is an NX monorepo')
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
declare function isNxWorkspace(path: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Check if directory is an NX project.
|
|
76
|
+
*
|
|
77
|
+
* @param path - Directory path to check
|
|
78
|
+
* @returns True if the directory contains project.json
|
|
79
|
+
*
|
|
80
|
+
* @example Checking for NX project
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import { isNxProject } from '@hyperfrontend/project-scope'
|
|
83
|
+
*
|
|
84
|
+
* if (isNxProject('./libs/my-lib')) {
|
|
85
|
+
* console.log('This is an NX project')
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
declare function isNxProject(path: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Find NX workspace root from any path.
|
|
92
|
+
*
|
|
93
|
+
* @param startPath - Starting path to search from
|
|
94
|
+
* @returns Workspace root path or null if not found
|
|
95
|
+
*
|
|
96
|
+
* @example Finding NX workspace root
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import { findNxWorkspaceRoot } from '@hyperfrontend/project-scope'
|
|
99
|
+
*
|
|
100
|
+
* const root = findNxWorkspaceRoot('./libs/my-lib/src')
|
|
101
|
+
* if (root) {
|
|
102
|
+
* console.log('Workspace root:', root) // e.g., '/home/user/my-monorepo'
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
declare function findNxWorkspaceRoot(startPath: string): string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Get comprehensive NX workspace information.
|
|
109
|
+
*
|
|
110
|
+
* @param workspacePath - Workspace root path
|
|
111
|
+
* @returns Workspace info or null if not an NX workspace
|
|
112
|
+
*
|
|
113
|
+
* @example Getting NX workspace information
|
|
114
|
+
* ```typescript
|
|
115
|
+
* import { getNxWorkspaceInfo } from '@hyperfrontend/project-scope'
|
|
116
|
+
*
|
|
117
|
+
* const info = getNxWorkspaceInfo('/path/to/monorepo')
|
|
118
|
+
* if (info) {
|
|
119
|
+
* console.log('NX version:', info.version)
|
|
120
|
+
* console.log('Apps dir:', info.workspaceLayout.appsDir)
|
|
121
|
+
* }
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
declare function getNxWorkspaceInfo(workspacePath: string): NxWorkspaceInfo | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Object form of an entry in `targets[*].dependsOn`: a target name plus the
|
|
128
|
+
* project(s) it should be looked up in.
|
|
129
|
+
*/
|
|
130
|
+
interface NxTargetDependency {
|
|
131
|
+
/** Target name to depend on */
|
|
132
|
+
target: string;
|
|
133
|
+
/** Project(s) containing the target */
|
|
134
|
+
projects: string | string[];
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* NX target configuration.
|
|
138
|
+
*/
|
|
139
|
+
interface NxTargetConfig {
|
|
140
|
+
/** Executor to run */
|
|
141
|
+
executor?: string;
|
|
142
|
+
/** Target outputs */
|
|
143
|
+
outputs?: string[];
|
|
144
|
+
/** Target options */
|
|
145
|
+
options?: Record<string, unknown>;
|
|
146
|
+
/** Target configurations */
|
|
147
|
+
configurations?: Record<string, Record<string, unknown>>;
|
|
148
|
+
/** Default configuration */
|
|
149
|
+
defaultConfiguration?: string;
|
|
150
|
+
/** Depends on other targets */
|
|
151
|
+
dependsOn?: Array<string | NxTargetDependency>;
|
|
152
|
+
/** Target inputs for caching */
|
|
153
|
+
inputs?: unknown[];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* NX project configuration from project.json.
|
|
157
|
+
*/
|
|
158
|
+
interface NxProjectConfig {
|
|
159
|
+
/** Project name */
|
|
160
|
+
name?: string;
|
|
161
|
+
/** Project root path (relative to workspace root) */
|
|
162
|
+
root?: string;
|
|
163
|
+
/** Source root path */
|
|
164
|
+
sourceRoot?: string;
|
|
165
|
+
/** Project type */
|
|
166
|
+
projectType?: 'application' | 'library';
|
|
167
|
+
/** Project tags for filtering */
|
|
168
|
+
tags?: string[];
|
|
169
|
+
/** Implicit dependencies */
|
|
170
|
+
implicitDependencies?: string[];
|
|
171
|
+
/** Named inputs for caching */
|
|
172
|
+
namedInputs?: Record<string, unknown[]>;
|
|
173
|
+
/** Build targets */
|
|
174
|
+
targets?: Record<string, NxTargetConfig>;
|
|
175
|
+
/** Generator defaults */
|
|
176
|
+
generators?: Record<string, unknown>;
|
|
177
|
+
/** Additional properties */
|
|
178
|
+
[key: string]: unknown;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Simplified project graph node.
|
|
182
|
+
*/
|
|
183
|
+
interface NxProjectGraphNode {
|
|
184
|
+
/** Project name */
|
|
185
|
+
name: string;
|
|
186
|
+
/** Project type */
|
|
187
|
+
type: string;
|
|
188
|
+
/** Project configuration */
|
|
189
|
+
data: NxProjectConfig;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Simplified project dependency.
|
|
193
|
+
*/
|
|
194
|
+
interface NxProjectDependency {
|
|
195
|
+
/** Target project name */
|
|
196
|
+
target: string;
|
|
197
|
+
/** Dependency type */
|
|
198
|
+
type: 'implicit' | 'explicit' | 'static';
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Simplified project graph.
|
|
202
|
+
*/
|
|
203
|
+
interface NxProjectGraph {
|
|
204
|
+
/** Project nodes */
|
|
205
|
+
nodes: Record<string, NxProjectGraphNode>;
|
|
206
|
+
/** Project dependencies */
|
|
207
|
+
dependencies: Record<string, NxProjectDependency[]>;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Read project.json for an NX project.
|
|
211
|
+
*
|
|
212
|
+
* @param projectPath - Project directory path
|
|
213
|
+
* @returns Parsed project.json or null if not found
|
|
214
|
+
*
|
|
215
|
+
* @example Reading NX project.json
|
|
216
|
+
* ```typescript
|
|
217
|
+
* import { readProjectJson } from '@hyperfrontend/project-scope'
|
|
218
|
+
*
|
|
219
|
+
* const config = readProjectJson('./libs/my-lib')
|
|
220
|
+
* if (config) {
|
|
221
|
+
* console.log('Project:', config.name, 'Type:', config.projectType)
|
|
222
|
+
* }
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
declare function readProjectJson(projectPath: string): NxProjectConfig | null;
|
|
226
|
+
/**
|
|
227
|
+
* Get project configuration from project.json or package.json nx field.
|
|
228
|
+
*
|
|
229
|
+
* @param projectPath - Project directory path
|
|
230
|
+
* @param workspacePath - Workspace root path (for relative path calculation)
|
|
231
|
+
* @returns Project configuration or null if not found
|
|
232
|
+
*
|
|
233
|
+
* @example Getting project configuration
|
|
234
|
+
* ```typescript
|
|
235
|
+
* import { getProjectConfig } from '@hyperfrontend/project-scope'
|
|
236
|
+
*
|
|
237
|
+
* const config = getProjectConfig('./libs/my-lib', '/workspace')
|
|
238
|
+
* // => { name: 'my-lib', root: 'libs/my-lib', projectType: 'library' }
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
declare function getProjectConfig(projectPath: string, workspacePath: string): NxProjectConfig | null;
|
|
242
|
+
/**
|
|
243
|
+
* Discover all NX projects in workspace.
|
|
244
|
+
* Supports both workspace.json (older format) and project.json (newer format).
|
|
245
|
+
*
|
|
246
|
+
* @param workspacePath - Workspace root path
|
|
247
|
+
* @returns Map of project name to configuration
|
|
248
|
+
*
|
|
249
|
+
* @example Discovering all NX projects
|
|
250
|
+
* ```typescript
|
|
251
|
+
* import { discoverNxProjects } from '@hyperfrontend/project-scope'
|
|
252
|
+
*
|
|
253
|
+
* const projects = discoverNxProjects('/workspace')
|
|
254
|
+
* for (const [name, config] of projects) {
|
|
255
|
+
* console.log(`${name}: ${config.projectType} at ${config.root}`)
|
|
256
|
+
* }
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
declare function discoverNxProjects(workspacePath: string): Map<string, NxProjectConfig>;
|
|
260
|
+
/**
|
|
261
|
+
* Build a simple project graph from discovered projects.
|
|
262
|
+
*
|
|
263
|
+
* @param workspacePath - Workspace root path
|
|
264
|
+
* @param projects - Existing configuration map to skip auto-discovery
|
|
265
|
+
* @returns NxProjectGraph with nodes and dependencies
|
|
266
|
+
*
|
|
267
|
+
* @example Building a simple project graph
|
|
268
|
+
* ```typescript
|
|
269
|
+
* import { buildSimpleProjectGraph } from '@hyperfrontend/project-scope'
|
|
270
|
+
*
|
|
271
|
+
* const graph = buildSimpleProjectGraph('/workspace')
|
|
272
|
+
* console.log('Projects:', Object.keys(graph.nodes))
|
|
273
|
+
* console.log('Dependencies:', graph.dependencies['my-app'])
|
|
274
|
+
* ```
|
|
275
|
+
*/
|
|
276
|
+
declare function buildSimpleProjectGraph(workspacePath: string, projects?: Map<string, NxProjectConfig>): NxProjectGraph;
|
|
277
|
+
|
|
278
|
+
export { NX_CONFIG_FILES, NX_PROJECT_FILE, buildSimpleProjectGraph, discoverNxProjects, findNxWorkspaceRoot, getNxWorkspaceInfo, getProjectConfig, isNxProject, isNxWorkspace, readProjectJson };
|
|
279
|
+
export type { NxJson, NxProjectConfig, NxProjectDependency, NxProjectGraph, NxProjectGraphNode, NxTargetConfig, NxWorkspaceInfo, NxWorkspaceLayout };
|
package/nx/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/project-scope/src/nx/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/project-scope/src/nx/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAC1E,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChI,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAChI,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA"}
|