@planningcenter/tapestry-migration-cli 2.4.1 → 2.5.0-rc.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/README.md CHANGED
@@ -14,25 +14,25 @@ yarn add --dev @planningcenter/tapestry-migration-cli
14
14
 
15
15
  For optimal results, migrate components in this order:
16
16
 
17
- 1. **Button components first**: `npx @planningcenter/tapestry-migration-cli run button -p ./src/components --fix`
18
- 2. **Link components second**: `npx @planningcenter/tapestry-migration-cli run link -p ./src/components --fix`
17
+ 1. **Button components first**: `npx @planningcenter/tapestry-migration-cli run button -p ./src/components`
18
+ 2. **Link components second**: `npx @planningcenter/tapestry-migration-cli run link -p ./src/components`
19
19
 
20
20
  This order ensures that Button components with navigation props are properly handled before Link components are migrated.
21
21
 
22
22
  ### Basic Commands
23
23
 
24
24
  ```bash
25
- # Run a dry-run migration (preview changes)
25
+ # Apply the migration changes (default behavior)
26
26
  npx @planningcenter/tapestry-migration-cli run button -p ./src/components
27
27
 
28
- # Apply the migration changes
29
- npx @planningcenter/tapestry-migration-cli run button -p ./src/components --fix
28
+ # Preview changes without writing (dry run)
29
+ npx @planningcenter/tapestry-migration-cli run button -p ./src/components --dry-run
30
30
 
31
31
  # Run with verbose output
32
- npx @planningcenter/tapestry-migration-cli run button -p ./src/components --fix --verbose
32
+ npx @planningcenter/tapestry-migration-cli run button -p ./src/components --verbose
33
33
 
34
34
  # Generate a migration report
35
- npx @planningcenter/tapestry-migration-cli run button -p ./src/components --fix --report-path ./migration-report.md
35
+ npx @planningcenter/tapestry-migration-cli run button -p ./src/components --report-path ./migration-report.md
36
36
  ```
37
37
 
38
38
  ## Available Components
@@ -46,7 +46,7 @@ npx @planningcenter/tapestry-migration-cli run button -p ./src/components --fix
46
46
 
47
47
  ## Optional Arguments
48
48
 
49
- - `-f, --fix` - Write changes to files (without this flag, it's a dry run)
49
+ - `-d, --dry-run` - Preview changes without writing to files (default: writes changes)
50
50
  - `-v, --verbose` - Show detailed output
51
51
  - `-j, --js-theme <path>` - Path to JavaScript theme file
52
52
  - `-r, --report-path <path>` - Path for migration report (default: MIGRATION_REPORT.md)
@@ -101,6 +101,6 @@ yarn add --dev @planningcenter/tapestry-migration-cli
101
101
  }
102
102
 
103
103
  # Then run (following recommended order)
104
- yarn migrate run button -p app/javascript/components --fix
105
- yarn migrate run link -p app/javascript/components --fix
104
+ yarn migrate run button -p app/javascript/components
105
+ yarn migrate run link -p app/javascript/components
106
106
  ```
@@ -2571,6 +2571,7 @@ const COMPONENT_KIND_CLASS_MAP = {
2571
2571
  "ghost-interaction": "tds-btn--ghost-interaction",
2572
2572
  "inline-text": "tds-btn--inline-text",
2573
2573
  neutral: "tds-btn--neutral",
2574
+ "neutral-inline": "tds-btn--neutral-inline",
2574
2575
  pill: "tds-btn--pill",
2575
2576
  primary: "tds-btn--interaction",
2576
2577
  "primary-page-header": "tds-btn--primary-page-header",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/tapestry-migration-cli",
3
- "version": "2.4.1",
3
+ "version": "2.5.0-rc.1",
4
4
  "description": "CLI tool for Tapestry migrations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "465fa2ffd3103c546f66e368859061daf3c7b6c1"
54
+ "gitHead": "e5ff2455e4766e1a91998ab096ea8c77f00f9bae"
55
55
  }
package/src/index.ts CHANGED
@@ -23,7 +23,7 @@ program
23
23
  "-p, --path <path>",
24
24
  "REQUIRED: The path to the folder/file to migrate"
25
25
  )
26
- .option("-f, --fix", "Write the changes to files (default: dry run)")
26
+ .option("-d, --dry-run", "Preview changes without writing to files")
27
27
  .option("-v, --verbose", "Verbose output")
28
28
  .option(
29
29
  "-j, --js-theme <path>",
@@ -31,7 +31,7 @@ program
31
31
  )
32
32
  .option(
33
33
  "-r, --report-path <path>",
34
- "Path for the migration report. Only runs with --fix and does not create a report if no additional changes are required.",
34
+ "Path for the migration report. Creates a report when running with changes applied and does not create a report if no additional changes are required.",
35
35
  "MIGRATION_REPORT.md"
36
36
  )
37
37
  .action((componentName, options) => {
@@ -41,7 +41,7 @@ program
41
41
  console.log(`🎨 Migrating ${componentName} components...`)
42
42
  console.log(`📁 Target: ${options.path}`)
43
43
  console.log(
44
- `🔧 Mode: ${options.fix ? "Apply changes" : "Dry run (preview only)"}`
44
+ `🔧 Mode: ${options.dryRun ? "Dry run (preview only)" : "Apply changes"}`
45
45
  )
46
46
  runTransforms(key, options)
47
47
  } else {
@@ -34,7 +34,7 @@ export function runTransforms(key: string, options: Options): void {
34
34
  "-t",
35
35
  transformPath,
36
36
  targetPath,
37
- options.fix ? "" : "--dry",
37
+ options.dryRun ? "--dry" : "",
38
38
  options.verbose ? "--verbose=2" : "",
39
39
  "--parser=tsx",
40
40
  ]
@@ -1,5 +1,5 @@
1
1
  export interface Options {
2
- fix?: boolean
2
+ dryRun?: boolean
3
3
  jsTheme?: string
4
4
  path: string
5
5
  reportPath?: string