tw-migrate 0.3.0 → 0.5.0
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 +59 -48
- package/dist/bin.js +15 -7
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1662 -566
- package/package.json +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tw-migrate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Preview and migrate React, Vue, and HTML CSS to Tailwind utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codemod",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "vp pack && napi build --manifest-path crates/tw_migrate/Cargo.toml --package-json-path package.json --output-dir . --platform --release --no-js --dts binding.d.ts",
|
|
37
37
|
"build:debug": "napi build --manifest-path crates/tw_migrate/Cargo.toml --package-json-path package.json --output-dir . --platform --no-js --dts binding.d.ts",
|
|
38
|
-
"artifacts": "
|
|
38
|
+
"artifacts": "node -e \"const fs=require('node:fs'); const files=fs.readdirSync('.').filter((file)=>file.startsWith('tw-migrate.')&&file.endsWith('.node')); if(files.length===0) throw new Error('no tw-migrate.*.node artifact in the package root; run build first'); for(const file of files) fs.copyFileSync(file, 'npm/'+file.slice('tw-migrate.'.length, -'.node'.length)+'/'+file)\"",
|
|
39
39
|
"test": "cargo test && pnpm build:debug && vp test",
|
|
40
40
|
"test:ecosystem": "node ecosystem-ci/run.ts",
|
|
41
41
|
"typecheck": "tsc --noEmit",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prepare": "vp config"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"parse5": "
|
|
47
|
+
"parse5": "8.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@napi-rs/cli": "catalog:",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"vue": "catalog:"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"tw-migrate-darwin-arm64": "0.
|
|
66
|
-
"tw-migrate-darwin-x64": "0.
|
|
67
|
-
"tw-migrate-linux-arm64-gnu": "0.
|
|
68
|
-
"tw-migrate-linux-x64-gnu": "0.
|
|
69
|
-
"tw-migrate-win32-x64-msvc": "0.
|
|
65
|
+
"tw-migrate-darwin-arm64": "0.5.0",
|
|
66
|
+
"tw-migrate-darwin-x64": "0.5.0",
|
|
67
|
+
"tw-migrate-linux-arm64-gnu": "0.5.0",
|
|
68
|
+
"tw-migrate-linux-x64-gnu": "0.5.0",
|
|
69
|
+
"tw-migrate-win32-x64-msvc": "0.5.0"
|
|
70
70
|
},
|
|
71
71
|
"napi": {
|
|
72
72
|
"binaryName": "tw-migrate",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">=22.
|
|
82
|
+
"node": ">=22.23.2"
|
|
83
83
|
},
|
|
84
|
-
"packageManager": "pnpm@11.
|
|
84
|
+
"packageManager": "pnpm@11.20.0"
|
|
85
85
|
}
|