@nswds/tokens 2.28.3 → 2.29.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 +5 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ There are a few common ways to consume the tokens. Adjust paths to match your `d
|
|
|
66
66
|
Or via JS/TS (for bundlers that support CSS imports):
|
|
67
67
|
|
|
68
68
|
```ts
|
|
69
|
-
import '@nswds/tokens/prism.css'
|
|
69
|
+
import '@nswds/tokens/prism.css'
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
The full path is also available:
|
|
@@ -138,15 +138,17 @@ Example:
|
|
|
138
138
|
```bash
|
|
139
139
|
git clone https://github.com/digitalnsw/nswds-tokens.git
|
|
140
140
|
cd nswds-tokens
|
|
141
|
+
nvm use
|
|
141
142
|
npm install
|
|
142
143
|
```
|
|
143
144
|
|
|
145
|
+
Use Node.js `^20.19.0` or `>=22.12.0` for local development. This repo now runs `vitest@4` for `npm run test:tokens`, and that toolchain requires at least Node `20.19.0` on the Node 20 release line.
|
|
146
|
+
|
|
144
147
|
Build:
|
|
145
148
|
|
|
146
149
|
```bash
|
|
147
150
|
npm run build
|
|
148
|
-
npm run
|
|
149
|
-
npm test
|
|
151
|
+
npm run test:tokens
|
|
150
152
|
npm run lint
|
|
151
153
|
```
|
|
152
154
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nswds/tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "NSW Application Design System Design Tokens",
|
|
5
5
|
"homepage": "https://github.com/digitalnsw/nswds-tokens#readme",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"format": "npx prettier --write .",
|
|
18
18
|
"copy-styles": "node scripts/copy-styles.mjs",
|
|
19
19
|
"build": "tsup src/index.ts --format esm,cjs --dts --target esnext --treeshake --clean",
|
|
20
|
-
"test:tokens": "
|
|
20
|
+
"test:tokens": "vitest run --globals",
|
|
21
21
|
"sync-tokens-to-figma": "tsx scripts/sync_tokens_to_figma.ts",
|
|
22
22
|
"sync-figma-to-tokens": "tsx scripts/sync_figma_to_tokens.ts"
|
|
23
23
|
},
|
|
@@ -112,11 +112,11 @@
|
|
|
112
112
|
"tsup": "^8.0.2",
|
|
113
113
|
"tsx": "^4.20.5",
|
|
114
114
|
"typescript": "^5.8.3",
|
|
115
|
-
"typescript-eslint": "^8.28.0"
|
|
115
|
+
"typescript-eslint": "^8.28.0",
|
|
116
|
+
"vitest": "^4.1.4"
|
|
116
117
|
},
|
|
117
118
|
"dependencies": {
|
|
118
|
-
"
|
|
119
|
-
"axios": "^1.13.6",
|
|
119
|
+
"axios": "^1.15.0",
|
|
120
120
|
"culori": "^4.0.2",
|
|
121
121
|
"dotenv": "^17.3.1"
|
|
122
122
|
}
|