@ariestools/toolchain 8.7.28 → 8.7.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/README.md +27 -0
- package/dist/actions/repo-init/index.d.ts +7 -0
- package/dist/actions/repo-init/index.d.ts.map +1 -0
- package/dist/actions/repo-init/prompts.d.ts +4 -0
- package/dist/actions/repo-init/prompts.d.ts.map +1 -0
- package/dist/actions/repo-init/resolvePlan.d.ts +7 -0
- package/dist/actions/repo-init/resolvePlan.d.ts.map +1 -0
- package/dist/actions/repo-init/scaffold.d.ts +10 -0
- package/dist/actions/repo-init/scaffold.d.ts.map +1 -0
- package/dist/actions/repo-init/skillsInstall.d.ts +12 -0
- package/dist/actions/repo-init/skillsInstall.d.ts.map +1 -0
- package/dist/actions/repo-init/templateVars.d.ts +5 -0
- package/dist/actions/repo-init/templateVars.d.ts.map +1 -0
- package/dist/actions/repo-init/types.d.ts +40 -0
- package/dist/actions/repo-init/types.d.ts.map +1 -0
- package/dist/actions/repo-init.d.ts +1 -13
- package/dist/actions/repo-init.d.ts.map +1 -1
- package/dist/actions/skills/passthrough.d.ts +4 -0
- package/dist/actions/skills/passthrough.d.ts.map +1 -1
- package/dist/bin/xy.mjs +719 -343
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/repo/initCommand.d.ts.map +1 -1
- package/package.json +8 -8
- package/templates/repo/cli/package/package.json.tmpl +5 -5
- package/templates/repo/cli/package/tsconfig.json.tmpl +4 -0
- package/templates/repo/cli/root/AGENTS.md.tmpl +34 -0
- package/templates/repo/cli/root/CLAUDE.md.tmpl +15 -15
- package/templates/repo/cli/root/eslint.config.ts.tmpl +16 -0
- package/templates/repo/cli/root/gitignore.tmpl +6 -9
- package/templates/repo/cli/root/package.json.tmpl +16 -14
- package/templates/repo/cli/root/tsconfig.json.tmpl +4 -0
- package/templates/repo/cli/root/{vitest.config.ts → vitest.config.ts.tmpl} +2 -2
- package/templates/repo/cli/package/tsconfig.json +0 -4
- package/templates/repo/cli/root/eslint.config.ts +0 -20
- package/templates/repo/cli/root/tsconfig.json +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initCommand.d.ts","sourceRoot":"","sources":["../../../../src/xy/common/repo/initCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"initCommand.d.ts","sourceRoot":"","sources":["../../../../src/xy/common/repo/initCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAa1C,eAAO,MAAM,WAAW,EAAE,aA0FzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariestools/toolchain",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.29",
|
|
4
4
|
"description": "Unified TypeScript toolchain for XY Labs — build, lint, test, deploy with auto-detected package manager and React support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"cosmiconfig-typescript-loader": "~6.3.0",
|
|
55
|
-
"esbuild": "~0.28.
|
|
56
|
-
"@ariestools/eslint-config-flat": "~8.7.
|
|
55
|
+
"esbuild": "~0.28.2",
|
|
56
|
+
"@ariestools/eslint-config-flat": "~8.7.29"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@inquirer/core": "~11.2.1",
|
|
60
60
|
"@types/cross-spawn": "~6.0.6",
|
|
61
61
|
"@types/eslint": "~9.6.1",
|
|
62
|
-
"@types/node": "~26.
|
|
62
|
+
"@types/node": "~26.2.0",
|
|
63
63
|
"@types/semver": "~7.8.0",
|
|
64
64
|
"@types/yargs": "~17.0.35",
|
|
65
65
|
"@typescript-eslint/parser": "~8.66.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"chalk": "~6.0.0",
|
|
68
68
|
"cosmiconfig": "~10.0.0",
|
|
69
69
|
"cross-spawn": "~7.0.6",
|
|
70
|
-
"eslint": "~10.8.
|
|
70
|
+
"eslint": "~10.8.1",
|
|
71
71
|
"eslint-import-resolver-typescript": "~4.4.5",
|
|
72
72
|
"find-up": "~8.0.0",
|
|
73
73
|
"get-tsconfig": "~4.14.1",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"skills": "~1.5.22",
|
|
81
81
|
"sort-package-json": "~4.0.0",
|
|
82
82
|
"table": "~6.9.0",
|
|
83
|
-
"tsx": "~4.23.
|
|
83
|
+
"tsx": "~4.23.11",
|
|
84
84
|
"typescript": "~6.0.3",
|
|
85
85
|
"vite": "~8.2.1",
|
|
86
86
|
"vitest": "~4.1.10",
|
|
87
87
|
"yaml": "~2.9.0",
|
|
88
88
|
"yargs": "~18.1.0",
|
|
89
|
-
"@ariestools/toolchain": "~8.7.
|
|
90
|
-
"@ariestools/tsconfig": "~8.7.
|
|
89
|
+
"@ariestools/toolchain": "~8.7.29",
|
|
90
|
+
"@ariestools/tsconfig": "~8.7.29"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"eslint": "^10.3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "{{
|
|
2
|
+
"name": "{{scopedPackageName}}",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"description": "{{description}}",
|
|
5
5
|
"keywords": [
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"package-compile": "package-compile"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"chalk": "~
|
|
46
|
+
"chalk": "~6.0.0",
|
|
47
47
|
"yargs": "~18.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/yargs": "~17.0.35",
|
|
51
51
|
"@ariestools/toolchain": "{{toolchainRange}}",
|
|
52
|
-
"
|
|
53
|
-
"typescript": "
|
|
52
|
+
"{{tsconfigPackage}}": "{{toolchainRange}}",
|
|
53
|
+
"typescript": "~6.0.3"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=22"
|
|
57
57
|
},
|
|
58
58
|
"engineStrict": true,
|
|
59
59
|
"publishConfig": {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to coding agents when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
{{layoutDescription}}
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
All `xy` commands must be run from the repo root{{packageDirNote}}.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
{{xyCommand}} build
|
|
15
|
+
{{xyCommand}} compile
|
|
16
|
+
{{xyCommand}} lint
|
|
17
|
+
{{xyCommand}} fix
|
|
18
|
+
{{xyCommand}} test
|
|
19
|
+
{{xyCommand}} deplint
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Architecture
|
|
23
|
+
|
|
24
|
+
- **Package manager**: {{pmName}}
|
|
25
|
+
- **Layout**: {{layoutLabel}}
|
|
26
|
+
- **Lint**: `{{eslintConfigPackage}}`
|
|
27
|
+
- **TypeScript**: extends `{{tsconfigPackage}}`
|
|
28
|
+
|
|
29
|
+
### CLI structure
|
|
30
|
+
|
|
31
|
+
- Entry: `{{srcPrefix}}bin/{{packageName}}.ts`
|
|
32
|
+
- Bootstrap: `{{srcPrefix}}{{packageName}}.ts`
|
|
33
|
+
- Commands: `{{srcPrefix}}commands/`
|
|
34
|
+
- Actions: `{{srcPrefix}}actions/`
|
|
@@ -4,33 +4,33 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
{{layoutDescription}}
|
|
8
8
|
|
|
9
9
|
## Commands
|
|
10
10
|
|
|
11
|
-
All `xy` commands must be run from the repo root
|
|
11
|
+
All `xy` commands must be run from the repo root{{packageDirNote}}.
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
{{
|
|
15
|
-
{{
|
|
16
|
-
{{
|
|
17
|
-
{{
|
|
18
|
-
{{
|
|
19
|
-
{{
|
|
20
|
-
{{pmName}} xy deplint # Verify dependency declarations
|
|
14
|
+
{{xyCommand}} build # Full build
|
|
15
|
+
{{xyCommand}} compile # TypeScript compilation only
|
|
16
|
+
{{xyCommand}} lint # Lint
|
|
17
|
+
{{xyCommand}} fix # Auto-fix lint issues
|
|
18
|
+
{{xyCommand}} test # Run all tests
|
|
19
|
+
{{xyCommand}} deplint # Verify dependency declarations
|
|
21
20
|
```
|
|
22
21
|
|
|
23
22
|
## Architecture
|
|
24
23
|
|
|
25
|
-
- **Package manager**: {{pmName}}
|
|
24
|
+
- **Package manager**: {{pmName}}
|
|
25
|
+
- **Layout**: {{layoutLabel}}
|
|
26
26
|
- **Build**: `xy compile` emits declarations with `tsc` and ESM JavaScript with esbuild in `dist/`
|
|
27
27
|
- **Test**: Vitest (node environment)
|
|
28
|
-
- **Lint**: ESLint
|
|
28
|
+
- **Lint**: ESLint via `{{eslintConfigPackage}}` (`recommendedConfig`)
|
|
29
29
|
|
|
30
30
|
### CLI structure
|
|
31
31
|
|
|
32
32
|
The `{{packageName}}` CLI follows the yargs command pattern:
|
|
33
|
-
- Entry point: `
|
|
34
|
-
- Yargs bootstrap: `
|
|
35
|
-
- Commands: `
|
|
36
|
-
- Actions: `
|
|
33
|
+
- Entry point: `{{srcPrefix}}bin/{{packageName}}.ts`
|
|
34
|
+
- Yargs bootstrap: `{{srcPrefix}}{{packageName}}.ts`
|
|
35
|
+
- Commands: `{{srcPrefix}}commands/` (each exports a `CommandModule`)
|
|
36
|
+
- Actions: `{{srcPrefix}}actions/` (business logic invoked by commands)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url'
|
|
2
|
+
|
|
3
|
+
import { recommendedConfig } from '{{eslintConfigPackage}}'
|
|
4
|
+
import type { Linter } from 'eslint'
|
|
5
|
+
import { includeIgnoreFile } from 'eslint/config'
|
|
6
|
+
|
|
7
|
+
const config: Linter.Config[] = [
|
|
8
|
+
includeIgnoreFile(fileURLToPath(new URL('.gitignore', import.meta.url)), {
|
|
9
|
+
gitignoreResolution: true,
|
|
10
|
+
name: 'repository .gitignore',
|
|
11
|
+
}),
|
|
12
|
+
{ ignores: ['**/dist/**', '**/build/**', '**/coverage/**', '**/node_modules/**'] },
|
|
13
|
+
...recommendedConfig({ tier: 3, isTypeChecked: true }),
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export default config
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
# Build outputs
|
|
1
|
+
# Build outputs
|
|
2
2
|
/build
|
|
3
3
|
/dist
|
|
4
4
|
/docs
|
|
5
5
|
/storybook-static
|
|
6
|
-
|
|
7
|
-
# Build outputs (packages)
|
|
8
6
|
packages/*/build
|
|
9
7
|
packages/*/dist
|
|
10
8
|
packages/*/docs
|
|
@@ -34,14 +32,13 @@ node_modules
|
|
|
34
32
|
# Lint
|
|
35
33
|
.eslintcache
|
|
36
34
|
|
|
37
|
-
# Claude Code
|
|
38
|
-
.claude
|
|
35
|
+
# Claude Code local overrides / worktrees (keep project skills under .claude/skills)
|
|
39
36
|
CLAUDE.local.md
|
|
40
|
-
|
|
41
|
-
# Claude Code worktrees
|
|
42
37
|
.claude-worktrees
|
|
38
|
+
.claude/worktrees
|
|
39
|
+
|
|
40
|
+
# Agent local overrides (keep project skills under .agents/skills)
|
|
41
|
+
.agents/worktrees
|
|
43
42
|
|
|
44
43
|
tmp
|
|
45
|
-
AGENTS.md
|
|
46
|
-
.agents
|
|
47
44
|
output
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "{{
|
|
3
|
-
"private":
|
|
2
|
+
"name": "{{rootPackageName}}",
|
|
3
|
+
"private": {{rootPrivate}},
|
|
4
4
|
"description": "{{description}}",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"type": "module",
|
|
28
28
|
"scripts": {
|
|
29
|
+
"build": "{{xyCommand}} build",
|
|
30
|
+
"compile": "{{xyCommand}} compile",
|
|
31
|
+
"lint": "{{xyCommand}} lint",
|
|
32
|
+
"fix": "{{xyCommand}} fix",
|
|
29
33
|
"test": "vitest run",
|
|
30
34
|
"test:coverage": "vitest run --coverage"
|
|
31
35
|
},
|
|
@@ -33,22 +37,20 @@
|
|
|
33
37
|
"packages/*"
|
|
34
38
|
],
|
|
35
39
|
"devDependencies": {
|
|
36
|
-
"@types/node": "~
|
|
37
|
-
"@vitest/coverage-v8": "~4.1.
|
|
38
|
-
"
|
|
39
|
-
"@ariestools/eslint-config-flat": "{{toolchainRange}}",
|
|
40
|
+
"@types/node": "~26.1.2",
|
|
41
|
+
"@vitest/coverage-v8": "~4.1.10",
|
|
42
|
+
"{{eslintConfigPackage}}": "{{toolchainRange}}",
|
|
40
43
|
"@ariestools/toolchain": "{{toolchainRange}}",
|
|
41
|
-
"
|
|
42
|
-
"eslint": "~10.
|
|
43
|
-
"eslint-import-resolver-typescript": "~4.4.
|
|
44
|
-
"typescript": "
|
|
45
|
-
"vite": "
|
|
46
|
-
"vitest": "
|
|
47
|
-
"yargs": "~18.0.0"
|
|
44
|
+
"{{tsconfigPackage}}": "{{toolchainRange}}",
|
|
45
|
+
"eslint": "~10.8.0",
|
|
46
|
+
"eslint-import-resolver-typescript": "~4.4.5",
|
|
47
|
+
"typescript": "~6.0.3",
|
|
48
|
+
"vite": "~8.2.1",
|
|
49
|
+
"vitest": "~4.1.10"
|
|
48
50
|
},
|
|
49
51
|
"packageManager": "{{packageManager}}",
|
|
50
52
|
"engineStrict": true,
|
|
51
53
|
"volta": {
|
|
52
|
-
"node": "22.
|
|
54
|
+
"node": "22.14.0"
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -6,7 +6,7 @@ export default defineConfig({
|
|
|
6
6
|
provider: 'v8' as const,
|
|
7
7
|
reporter: ['text', 'lcov', 'json-summary'],
|
|
8
8
|
reportsDirectory: './coverage',
|
|
9
|
-
include: ['
|
|
9
|
+
include: ['{{coverageInclude}}'],
|
|
10
10
|
exclude: [
|
|
11
11
|
'**/*.spec.{ts,tsx,mts,cts}',
|
|
12
12
|
'**/*.test.{ts,tsx,mts,cts}',
|
|
@@ -23,7 +23,7 @@ export default defineConfig({
|
|
|
23
23
|
test: {
|
|
24
24
|
name: 'node',
|
|
25
25
|
environment: 'node',
|
|
26
|
-
include: ['
|
|
26
|
+
include: ['{{testInclude}}'],
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
],
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
importConfig,
|
|
3
|
-
rulesConfig,
|
|
4
|
-
typescriptTypeCheckedConfig,
|
|
5
|
-
unicornConfig,
|
|
6
|
-
workspacesConfig,
|
|
7
|
-
} from '@ariestools/eslint-config-flat'
|
|
8
|
-
import type { Linter } from 'eslint'
|
|
9
|
-
|
|
10
|
-
const config: Linter.Config[] = [
|
|
11
|
-
{ ignores: ['.yarn', 'dist', 'build', 'coverage', 'docs', '**/dist', '**/build', '**/docs'] },
|
|
12
|
-
unicornConfig,
|
|
13
|
-
workspacesConfig,
|
|
14
|
-
rulesConfig,
|
|
15
|
-
...typescriptTypeCheckedConfig,
|
|
16
|
-
...importConfig,
|
|
17
|
-
{ rules: { 'import-x/no-cycle': ['warn', { maxDepth: 5 }] } },
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
export default config
|