@entur/typography 2.0.0-beta.1 → 2.0.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/typography",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "type": "module",
6
6
  "main": "./dist/typography.cjs.js",
@@ -58,7 +58,6 @@
58
58
  "migrate": "./scripts/migrate-typography.js"
59
59
  },
60
60
  "peerDependencies": {
61
- "glob": "^11.0.0",
62
61
  "react": ">=16.8.0",
63
62
  "react-dom": ">=16.8.0"
64
63
  },
@@ -67,6 +66,7 @@
67
66
  "@entur/tokens": "^3.19.3",
68
67
  "@entur/utils": "^0.12.5",
69
68
  "classnames": "^2.5.1",
69
+ "glob": "^11.0.0",
70
70
  "modern-normalize": "^3.0.1"
71
71
  },
72
72
  "devDependencies": {
@@ -82,5 +82,5 @@
82
82
  "vite": "^7.1.3",
83
83
  "vite-plugin-dts": "^4.5.4"
84
84
  },
85
- "gitHead": "4ca471ab86d5b40be5a87eb41b352bf37b476db2"
85
+ "gitHead": "4b2446e281aa4e8b7b7f78ca9191baf74fb250cb"
86
86
  }
@@ -75,19 +75,12 @@ try {
75
75
  '❌ Error: The "glob" package is required to run this migration script.',
76
76
  );
77
77
  console.error('');
78
- console.error('Please install it first:');
78
+ console.error('Please install it:');
79
79
  console.error(' npm install glob');
80
80
  console.error(' yarn add glob');
81
- console.error(' pnpm add glob');
82
81
  console.error('');
83
- console.error('Then run the migration:');
82
+ console.error('Or use npx which will handle dependencies automatically:');
84
83
  console.error(' npx @entur/typography@latest migrate');
85
- console.error(' yarn dlx @entur/typography@latest migrate');
86
- console.error('');
87
- console.error('📚 For more information, see:');
88
- console.error(
89
- ' https://linje.entur.no/komponenter/ressurser/typography-migration',
90
- );
91
84
  console.error('');
92
85
  process.exit(1);
93
86
  }
@@ -1304,12 +1297,6 @@ async function main() {
1304
1297
  console.log(' # Local development');
1305
1298
  console.log(' npm run migrate');
1306
1299
  console.log('');
1307
- console.log('📋 Prerequisites:');
1308
- console.log(' - Install glob package: npm install glob');
1309
- console.log(
1310
- ' - Or use npx/yarn dlx which handles dependencies automatically',
1311
- );
1312
- console.log('');
1313
1300
  console.log('Options:');
1314
1301
  console.log(
1315
1302
  ' --dry-run Show what would be changed without modifying files',