Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ without `yarn install` will produce an error saying it cannot find the
yarn showcase
```

## Yarn 4 and ESM

Starting from this release the project uses native ESM modules. The
`package.json` includes `"type": "module"` and the Vite configuration is
exported with `export default`. After checking out the repository make sure to
run `yarn install` before any other command. Previous runs could fail during the
link step when the deprecated `vite-plugin-checker` was present. The plugin has
been removed and `yarn install` should now complete without errors.

## Versioning

Push to master will trigger deploy as well as publish to npm registry. A new tag will be created with the version. See [here](https://github.com/mikeal/merge-release#workflow) for special commit messages that trigger version changes.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@reef-chain/ui-kit",
"version": "4.0.0",
"private": false,
"type": "module",
"files": [
"dist",
"src/",
Expand Down Expand Up @@ -90,7 +91,6 @@
"sass": "^1.89.1",
"typescript": "^5.8.3",
"vite": "^6.3.5",
"vite-plugin-checker": "^0.9.3",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-eslint": "^1.8.1",
"yalc": "^1.0.0-pre.53"
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import dts from 'vite-plugin-dts'
import checker from 'vite-plugin-checker'
import eslint from 'vite-plugin-eslint'
import * as path from 'node:path'
import { fileURLToPath } from 'node:url'
Expand All @@ -12,7 +11,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig(({ command, mode }) => {
if (command !== "build") {
return {
plugins: [react(), checker({ typescript: true }), eslint()]
plugins: [react(), eslint()]
}
}

Expand Down
85 changes: 2 additions & 83 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4665,7 +4665,6 @@ __metadata:
sass: "npm:^1.89.1"
typescript: "npm:^5.8.3"
vite: "npm:^6.3.5"
vite-plugin-checker: "npm:^0.9.3"
vite-plugin-dts: "npm:^4.5.4"
vite-plugin-eslint: "npm:^1.8.1"
yalc: "npm:^1.0.0-pre.53"
Expand Down Expand Up @@ -7472,15 +7471,6 @@ __metadata:
languageName: node
linkType: hard

"chokidar@npm:^4.0.3":
version: 4.0.3
resolution: "chokidar@npm:4.0.3"
dependencies:
readdirp: "npm:^4.0.1"
checksum: 10c0/a58b9df05bb452f7d105d9e7229ac82fa873741c0c40ddcc7bb82f8a909fbe3f7814c9ebe9bc9a2bef9b737c0ec6e2d699d179048ef06ad3ec46315df0ebe6ad
languageName: node
linkType: hard

"chownr@npm:^3.0.0":
version: 3.0.0
resolution: "chownr@npm:3.0.0"
Expand Down Expand Up @@ -13686,16 +13676,6 @@ __metadata:
languageName: node
linkType: hard

"npm-run-path@npm:^6.0.0":
version: 6.0.0
resolution: "npm-run-path@npm:6.0.0"
dependencies:
path-key: "npm:^4.0.0"
unicorn-magic: "npm:^0.3.0"
checksum: 10c0/b223c8a0dcd608abf95363ea5c3c0ccc3cd877daf0102eaf1b0f2390d6858d8337fbb7c443af2403b067a7d2c116d10691ecd22ab3c5273c44da1ff8d07753bd
languageName: node
linkType: hard

"number-allocator@npm:^1.0.14":
version: 1.0.14
resolution: "number-allocator@npm:1.0.14"
Expand Down Expand Up @@ -16066,7 +16046,7 @@ __metadata:
languageName: node
linkType: hard

"strip-ansi@npm:^7.0.1, strip-ansi@npm:^7.1.0":
"strip-ansi@npm:^7.0.1":
version: 7.1.0
resolution: "strip-ansi@npm:7.1.0"
dependencies:
Expand Down Expand Up @@ -16322,13 +16302,6 @@ __metadata:
languageName: node
linkType: hard

"tiny-invariant@npm:^1.3.3":
version: 1.3.3
resolution: "tiny-invariant@npm:1.3.3"
checksum: 10c0/65af4a07324b591a059b35269cd696aba21bef2107f29b9f5894d83cc143159a204b299553435b03874ebb5b94d019afa8b8eff241c8a4cfee95872c2e1c1c4a
languageName: node
linkType: hard

"tinyglobby@npm:^0.2.12, tinyglobby@npm:^0.2.13":
version: 0.2.14
resolution: "tinyglobby@npm:0.2.14"
Expand Down Expand Up @@ -16839,13 +16812,6 @@ __metadata:
languageName: node
linkType: hard

"unicorn-magic@npm:^0.3.0":
version: 0.3.0
resolution: "unicorn-magic@npm:0.3.0"
checksum: 10c0/0a32a997d6c15f1c2a077a15b1c4ca6f268d574cf5b8975e778bb98e6f8db4ef4e86dfcae4e158cd4c7e38fb4dd383b93b13eefddc7f178dea13d3ac8a603271
languageName: node
linkType: hard

"uniq@npm:^1.0.1":
version: 1.0.1
resolution: "uniq@npm:1.0.1"
Expand Down Expand Up @@ -17105,53 +17071,6 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-checker@npm:^0.9.3":
version: 0.9.3
resolution: "vite-plugin-checker@npm:0.9.3"
dependencies:
"@babel/code-frame": "npm:^7.27.1"
chokidar: "npm:^4.0.3"
npm-run-path: "npm:^6.0.0"
picocolors: "npm:^1.1.1"
picomatch: "npm:^4.0.2"
strip-ansi: "npm:^7.1.0"
tiny-invariant: "npm:^1.3.3"
tinyglobby: "npm:^0.2.13"
vscode-uri: "npm:^3.1.0"
peerDependencies:
"@biomejs/biome": ">=1.7"
eslint: ">=7"
meow: ^13.2.0
optionator: ^0.9.4
stylelint: ">=16"
typescript: "*"
vite: ">=2.0.0"
vls: "*"
vti: "*"
vue-tsc: ~2.2.10
peerDependenciesMeta:
"@biomejs/biome":
optional: true
eslint:
optional: true
meow:
optional: true
optionator:
optional: true
stylelint:
optional: true
typescript:
optional: true
vls:
optional: true
vti:
optional: true
vue-tsc:
optional: true
checksum: 10c0/e466b121c6a4d839d34d75127235c662a1567080b7d1d6acf2d3aef8405662151a348b89f2b064b6065fb7f863bf9f4aa6de839248af6c36dbc6239f9a8e765c
languageName: node
linkType: hard

"vite-plugin-dts@npm:^4.5.4":
version: 4.5.4
resolution: "vite-plugin-dts@npm:4.5.4"
Expand Down Expand Up @@ -17258,7 +17177,7 @@ __metadata:
languageName: node
linkType: hard

"vscode-uri@npm:^3.0.8, vscode-uri@npm:^3.1.0":
"vscode-uri@npm:^3.0.8":
version: 3.1.0
resolution: "vscode-uri@npm:3.1.0"
checksum: 10c0/5f6c9c10fd9b1664d71fab4e9fbbae6be93c7f75bb3a1d9d74399a88ab8649e99691223fd7cef4644376cac6e94fa2c086d802521b9a8e31c5af3e60f0f35624
Expand Down