@typestyles/migrate 0.5.2 → 0.5.4

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.d.cts CHANGED
@@ -1,37 +1,42 @@
1
+
2
+ //#region src/types.d.ts
1
3
  type MigrationWarning = {
2
- message: string;
3
- nodeName?: string;
4
+ message: string;
5
+ nodeName?: string;
4
6
  };
5
7
  type FileMigrationResult = {
6
- filePath: string;
7
- changed: boolean;
8
- code: string;
9
- warnings: MigrationWarning[];
8
+ filePath: string;
9
+ changed: boolean;
10
+ code: string;
11
+ warnings: MigrationWarning[];
10
12
  };
11
13
  type MigrationSummary = {
12
- filesScanned: number;
13
- filesChanged: number;
14
- warnings: number;
14
+ filesScanned: number;
15
+ filesChanged: number;
16
+ warnings: number;
15
17
  };
16
18
  type CliOptions = {
17
- targets: string[];
18
- write: boolean;
19
- include: string[];
20
- exclude: string[];
21
- extensions: string[];
22
- reportPath?: string;
19
+ targets: string[];
20
+ write: boolean;
21
+ include: string[];
22
+ exclude: string[];
23
+ extensions: string[];
24
+ reportPath?: string;
23
25
  };
24
26
  type MigrationReport = {
25
- summary: MigrationSummary;
26
- files: Array<{
27
- filePath: string;
28
- changed: boolean;
29
- warnings: MigrationWarning[];
30
- }>;
27
+ summary: MigrationSummary;
28
+ files: Array<{
29
+ filePath: string;
30
+ changed: boolean;
31
+ warnings: MigrationWarning[];
32
+ }>;
31
33
  };
32
-
33
- declare function migrateSource(filePath: string, source: string): FileMigrationResult;
34
-
35
- declare function runMigration(cwd: string, options: CliOptions): Promise<MigrationReport>;
36
-
37
- export { type CliOptions, type FileMigrationResult, type MigrationReport, type MigrationSummary, type MigrationWarning, migrateSource, runMigration };
34
+ //#endregion
35
+ //#region src/transform.d.ts
36
+ export declare function migrateSource(filePath: string, source: string): FileMigrationResult;
37
+ //#endregion
38
+ //#region src/migrate.d.ts
39
+ export declare function runMigration(cwd: string, options: CliOptions): Promise<MigrationReport>;
40
+ //#endregion
41
+ export type { CliOptions, FileMigrationResult, MigrationReport, MigrationSummary, MigrationWarning };
42
+ //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,37 +1,42 @@
1
+
2
+ //#region src/types.d.ts
1
3
  type MigrationWarning = {
2
- message: string;
3
- nodeName?: string;
4
+ message: string;
5
+ nodeName?: string;
4
6
  };
5
7
  type FileMigrationResult = {
6
- filePath: string;
7
- changed: boolean;
8
- code: string;
9
- warnings: MigrationWarning[];
8
+ filePath: string;
9
+ changed: boolean;
10
+ code: string;
11
+ warnings: MigrationWarning[];
10
12
  };
11
13
  type MigrationSummary = {
12
- filesScanned: number;
13
- filesChanged: number;
14
- warnings: number;
14
+ filesScanned: number;
15
+ filesChanged: number;
16
+ warnings: number;
15
17
  };
16
18
  type CliOptions = {
17
- targets: string[];
18
- write: boolean;
19
- include: string[];
20
- exclude: string[];
21
- extensions: string[];
22
- reportPath?: string;
19
+ targets: string[];
20
+ write: boolean;
21
+ include: string[];
22
+ exclude: string[];
23
+ extensions: string[];
24
+ reportPath?: string;
23
25
  };
24
26
  type MigrationReport = {
25
- summary: MigrationSummary;
26
- files: Array<{
27
- filePath: string;
28
- changed: boolean;
29
- warnings: MigrationWarning[];
30
- }>;
27
+ summary: MigrationSummary;
28
+ files: Array<{
29
+ filePath: string;
30
+ changed: boolean;
31
+ warnings: MigrationWarning[];
32
+ }>;
31
33
  };
32
-
33
- declare function migrateSource(filePath: string, source: string): FileMigrationResult;
34
-
35
- declare function runMigration(cwd: string, options: CliOptions): Promise<MigrationReport>;
36
-
37
- export { type CliOptions, type FileMigrationResult, type MigrationReport, type MigrationSummary, type MigrationWarning, migrateSource, runMigration };
34
+ //#endregion
35
+ //#region src/transform.d.ts
36
+ export declare function migrateSource(filePath: string, source: string): FileMigrationResult;
37
+ //#endregion
38
+ //#region src/migrate.d.ts
39
+ export declare function runMigration(cwd: string, options: CliOptions): Promise<MigrationReport>;
40
+ //#endregion
41
+ export type { CliOptions, FileMigrationResult, MigrationReport, MigrationSummary, MigrationWarning };
42
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { migrateSource, runMigration } from './chunk-ZP5DTZ6D.js';
3
- //# sourceMappingURL=index.js.map
4
- //# sourceMappingURL=index.js.map
2
+ export { n as migrateSource, t as runMigration } from "./migrate-DUG0GWWo.js";