Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.x]
node-version: [20.x, 22.x, 24.x, 25.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
__fixtures_build__/
src/__fixtures__/dist/
coverage/
.turbo
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
24
49 changes: 0 additions & 49 deletions build/rollup.config.mjs

This file was deleted.

23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"private": true,
"scripts": {
"build": "pnpm -r run build",
"dev": "pnpm -r --parallel run build --watch",
"build": "turbo run build",
"format": "prettier --write .",
"lint": "eslint . && prettier --check .",
"release": "lerna publish --conventional-commits && conventional-github-releaser --preset angular",
"test": "jest --runInBand"
},
"packageManager": "pnpm@8.1.1",
"packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
"devDependencies": {
"@types/babel__core": "^7.20.0",
"@types/node": "^18.15.11",
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@rollup/plugin-json": "^6.0.0",
"@svgr/plugin-jsx": "workspace:*",
"@svgr/plugin-prettier": "workspace:*",
"@svgr/plugin-svgo": "workspace:*",
"@types/babel__core": "^7.20.0",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@svgr/plugin-jsx": "workspace:*",
"@svgr/plugin-svgo": "workspace:*",
"@svgr/plugin-prettier": "workspace:*",
"babel-jest": "^29.5.0",
"codecov": "^3.8.3",
"conventional-github-releaser": "^3.1.5",
Expand All @@ -31,10 +30,10 @@
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.5.0",
"lerna": "^6.6.0",
"prettier": "^2.8.8",
"react": "^18.2.0",
"rollup": "^3.20.2",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-esbuild": "^5.0.0",
"typescript": "^5.0.2"
"tsdown": "0.21.0-beta.2",
"turbo": "^2.8.12",
"typescript": "^5.9.3"
}
}
16 changes: 8 additions & 8 deletions packages/babel-plugin-add-jsx-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@svgr/babel-plugin-add-jsx-attribute",
"description": "Add JSX attribute",
"version": "8.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "commonjs",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -20,7 +21,7 @@
"babel-plugin"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"homepage": "https://react-svgr.com",
"funding": {
Expand All @@ -32,8 +33,7 @@
"@babel/core": "^7.0.0-0"
},
"scripts": {
"reset": "rm -rf dist",
"build": "rollup -c ../../build/rollup.config.mjs",
"prepublishOnly": "pnpm run reset && pnpm run build"
"check-types": "tsc",
"build": "tsdown"
}
}
3 changes: 1 addition & 2 deletions packages/babel-plugin-add-jsx-attribute/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig",
"include": ["src"]
"extends": "../../tsconfig.json"
}
6 changes: 6 additions & 0 deletions packages/babel-plugin-add-jsx-attribute/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
format: 'cjs',
})
15 changes: 7 additions & 8 deletions packages/babel-plugin-remove-jsx-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@svgr/babel-plugin-remove-jsx-attribute",
"description": "Remove JSX attribute",
"version": "8.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -20,7 +20,7 @@
"babel-plugin"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"homepage": "https://react-svgr.com",
"funding": {
Expand All @@ -32,8 +32,7 @@
"@babel/core": "^7.0.0-0"
},
"scripts": {
"reset": "rm -rf dist",
"build": "rollup -c ../../build/rollup.config.mjs",
"prepublishOnly": "pnpm run reset && pnpm run build"
"check-types": "tsc",
"build": "tsdown"
}
}
3 changes: 1 addition & 2 deletions packages/babel-plugin-remove-jsx-attribute/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig",
"include": ["src"]
"extends": "../../tsconfig.json"
}
6 changes: 6 additions & 0 deletions packages/babel-plugin-remove-jsx-attribute/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
format: 'cjs',
})
15 changes: 7 additions & 8 deletions packages/babel-plugin-remove-jsx-empty-expression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@svgr/babel-plugin-remove-jsx-empty-expression",
"description": "Remove JSX empty expression",
"version": "8.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -20,7 +20,7 @@
"babel-plugin"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"homepage": "https://react-svgr.com",
"funding": {
Expand All @@ -32,8 +32,7 @@
"@babel/core": "^7.0.0-0"
},
"scripts": {
"reset": "rm -rf dist",
"build": "rollup -c ../../build/rollup.config.mjs",
"prepublishOnly": "pnpm run reset && pnpm run build"
"check-types": "tsc",
"build": "tsdown"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig",
"include": ["src"]
"extends": "../../tsconfig.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
format: 'cjs',
})
15 changes: 7 additions & 8 deletions packages/babel-plugin-replace-jsx-attribute-value/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@svgr/babel-plugin-replace-jsx-attribute-value",
"description": "Replace JSX attribute value",
"version": "8.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -20,7 +20,7 @@
"babel-plugin"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"homepage": "https://react-svgr.com",
"funding": {
Expand All @@ -32,8 +32,7 @@
"@babel/core": "^7.0.0-0"
},
"scripts": {
"reset": "rm -rf dist",
"build": "rollup -c ../../build/rollup.config.mjs",
"prepublishOnly": "pnpm run reset && pnpm run build"
"check-types": "tsc",
"build": "tsdown"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig",
"include": ["src"]
"extends": "../../tsconfig.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
format: 'cjs',
})
15 changes: 7 additions & 8 deletions packages/babel-plugin-svg-dynamic-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@svgr/babel-plugin-svg-dynamic-title",
"description": "Transform SVG by adding a dynamic title element",
"version": "8.0.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
Expand All @@ -20,7 +20,7 @@
"babel-plugin"
],
"engines": {
"node": ">=14"
"node": ">=20"
},
"homepage": "https://react-svgr.com",
"funding": {
Expand All @@ -32,8 +32,7 @@
"@babel/core": "^7.0.0-0"
},
"scripts": {
"reset": "rm -rf dist",
"build": "rollup -c ../../build/rollup.config.mjs",
"prepublishOnly": "pnpm run reset && pnpm run build"
"check-types": "tsc",
"build": "tsdown"
}
}
3 changes: 1 addition & 2 deletions packages/babel-plugin-svg-dynamic-title/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig",
"include": ["src"]
"extends": "../../tsconfig.json"
}
6 changes: 6 additions & 0 deletions packages/babel-plugin-svg-dynamic-title/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: 'src/index.ts',
format: 'cjs',
})
Loading
Loading