@typestyles/migrate 0.5.2 → 0.5.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/dist/cli.cjs +56 -1011
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +57 -59
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -958
- package/dist/index.d.cts +32 -27
- package/dist/index.d.ts +32 -27
- package/dist/index.js +1 -3
- package/dist/migrate-C2D1XXFr.cjs +725 -0
- package/dist/migrate-C2D1XXFr.cjs.map +1 -0
- package/dist/migrate-DFON1MgM.js +686 -0
- package/dist/migrate-DFON1MgM.js.map +1 -0
- package/package.json +6 -8
- package/dist/chunk-ZP5DTZ6D.js +0 -929
- package/dist/chunk-ZP5DTZ6D.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types.d.ts
|
|
1
3
|
type MigrationWarning = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
message: string;
|
|
5
|
+
nodeName?: string;
|
|
4
6
|
};
|
|
5
7
|
type FileMigrationResult = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
filePath: string;
|
|
9
|
+
changed: boolean;
|
|
10
|
+
code: string;
|
|
11
|
+
warnings: MigrationWarning[];
|
|
10
12
|
};
|
|
11
13
|
type MigrationSummary = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
filesScanned: number;
|
|
15
|
+
filesChanged: number;
|
|
16
|
+
warnings: number;
|
|
15
17
|
};
|
|
16
18
|
type CliOptions = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
summary: MigrationSummary;
|
|
28
|
+
files: Array<{
|
|
29
|
+
filePath: string;
|
|
30
|
+
changed: boolean;
|
|
31
|
+
warnings: MigrationWarning[];
|
|
32
|
+
}>;
|
|
31
33
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export
|
|
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
|
-
|
|
3
|
-
|
|
4
|
+
message: string;
|
|
5
|
+
nodeName?: string;
|
|
4
6
|
};
|
|
5
7
|
type FileMigrationResult = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
filePath: string;
|
|
9
|
+
changed: boolean;
|
|
10
|
+
code: string;
|
|
11
|
+
warnings: MigrationWarning[];
|
|
10
12
|
};
|
|
11
13
|
type MigrationSummary = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
filesScanned: number;
|
|
15
|
+
filesChanged: number;
|
|
16
|
+
warnings: number;
|
|
15
17
|
};
|
|
16
18
|
type CliOptions = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
summary: MigrationSummary;
|
|
28
|
+
files: Array<{
|
|
29
|
+
filePath: string;
|
|
30
|
+
changed: boolean;
|
|
31
|
+
warnings: MigrationWarning[];
|
|
32
|
+
}>;
|
|
31
33
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export
|
|
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