@typestyles/migrate 0.0.0-unstable.247bf362710f
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/chunk-AINAKUVX.js +422 -0
- package/dist/chunk-AINAKUVX.js.map +1 -0
- package/dist/cli.cjs +521 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +76 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +452 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/package.json +65 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type MigrationWarning = {
|
|
2
|
+
message: string;
|
|
3
|
+
nodeName?: string;
|
|
4
|
+
};
|
|
5
|
+
type FileMigrationResult = {
|
|
6
|
+
filePath: string;
|
|
7
|
+
changed: boolean;
|
|
8
|
+
code: string;
|
|
9
|
+
warnings: MigrationWarning[];
|
|
10
|
+
};
|
|
11
|
+
type MigrationSummary = {
|
|
12
|
+
filesScanned: number;
|
|
13
|
+
filesChanged: number;
|
|
14
|
+
warnings: number;
|
|
15
|
+
};
|
|
16
|
+
type CliOptions = {
|
|
17
|
+
targets: string[];
|
|
18
|
+
write: boolean;
|
|
19
|
+
include: string[];
|
|
20
|
+
exclude: string[];
|
|
21
|
+
extensions: string[];
|
|
22
|
+
reportPath?: string;
|
|
23
|
+
};
|
|
24
|
+
type MigrationReport = {
|
|
25
|
+
summary: MigrationSummary;
|
|
26
|
+
files: Array<{
|
|
27
|
+
filePath: string;
|
|
28
|
+
changed: boolean;
|
|
29
|
+
warnings: MigrationWarning[];
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
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 };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@typestyles/migrate",
|
|
3
|
+
"version": "0.0.0-unstable.247bf362710f",
|
|
4
|
+
"description": "CLI codemods for migrating codebases to typestyles",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"typestyles-migrate": "./dist/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"typestyles",
|
|
29
|
+
"codemod",
|
|
30
|
+
"migration",
|
|
31
|
+
"cli",
|
|
32
|
+
"styled-components",
|
|
33
|
+
"emotion"
|
|
34
|
+
],
|
|
35
|
+
"license": "Apache-2.0",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/dbanksdesign/typestyles",
|
|
39
|
+
"directory": "packages/migrate"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/babel__generator": "^7.27.0",
|
|
43
|
+
"@types/babel__traverse": "^7.28.0",
|
|
44
|
+
"@types/node": "^25.2.1",
|
|
45
|
+
"@types/picomatch": "^4.0.2",
|
|
46
|
+
"tsup": "^8.0.0",
|
|
47
|
+
"typescript": "^5.4.0",
|
|
48
|
+
"vitest": "^3.0.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@babel/generator": "^7.29.1",
|
|
52
|
+
"@babel/parser": "^7.29.2",
|
|
53
|
+
"@babel/traverse": "^7.29.0",
|
|
54
|
+
"@babel/types": "^7.29.0",
|
|
55
|
+
"diff": "^8.0.3",
|
|
56
|
+
"fast-glob": "^3.3.3",
|
|
57
|
+
"picomatch": "^4.0.3",
|
|
58
|
+
"postcss": "^8.5.8"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"typecheck": "tsc --noEmit"
|
|
64
|
+
}
|
|
65
|
+
}
|