@entur/typography 1.10.0-beta.1 → 1.10.0-beta.5
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 +10 -8
- package/package.json +6 -2
- package/scripts/migrate-typography.js +0 -0
package/README.md
CHANGED
|
@@ -63,18 +63,20 @@ function MyComponent() {
|
|
|
63
63
|
### Quick Migration
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
# Option 1:
|
|
66
|
+
# Option 1: Using npx (recommended)
|
|
67
67
|
npx @entur/typography@latest migrate
|
|
68
68
|
|
|
69
|
-
# Option 2:
|
|
70
|
-
npx @entur/typography@latest migrate
|
|
71
|
-
|
|
72
|
-
# Option 3: Direct execution (if you have the package locally)
|
|
73
|
-
node node_modules/@entur/typography/scripts/migrate-typography.js
|
|
74
|
-
|
|
75
|
-
# All options support --dry-run and --import-only flags
|
|
69
|
+
# Option 2: With specific options
|
|
76
70
|
npx @entur/typography@latest migrate --dry-run
|
|
77
71
|
npx @entur/typography@latest migrate --import-only
|
|
72
|
+
|
|
73
|
+
# Option 3: From installed package
|
|
74
|
+
npm install @entur/typography@latest
|
|
75
|
+
npx @entur/typography@latest migrate
|
|
76
|
+
|
|
77
|
+
# Option 4: Add to your package.json scripts
|
|
78
|
+
# "scripts": { "migrate-typography": "npx @entur/typography@latest migrate" }
|
|
79
|
+
# Then run: npm run migrate-typography -- --dry-run
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
**Note**: The migration script requires `glob` to be available. If you encounter an error, install it:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/typography",
|
|
3
|
-
"version": "1.10.0-beta.
|
|
3
|
+
"version": "1.10.0-beta.5",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/typography.esm.js",
|
|
@@ -24,7 +24,11 @@
|
|
|
24
24
|
"start": "dts watch --noClean",
|
|
25
25
|
"migrate": "node scripts/migrate-typography.js"
|
|
26
26
|
},
|
|
27
|
+
"bin": {
|
|
28
|
+
"migrate-typography": "scripts/migrate-typography.js"
|
|
29
|
+
},
|
|
27
30
|
"peerDependencies": {
|
|
31
|
+
"glob": "^11.0.0",
|
|
28
32
|
"react": ">=16.8.0",
|
|
29
33
|
"react-dom": ">=16.8.0"
|
|
30
34
|
},
|
|
@@ -38,5 +42,5 @@
|
|
|
38
42
|
"devDependencies": {
|
|
39
43
|
"dts-cli": "2.0.5"
|
|
40
44
|
},
|
|
41
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ba4ae77ebb013a60523baf66ff658b73fa7e0719"
|
|
42
46
|
}
|
|
File without changes
|