Skip to content

Commit

Permalink
chore: upgrade majors - rollup, rimraf, typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbarion committed Mar 19, 2024
1 parent 4ad5eec commit 8c48e46
Show file tree
Hide file tree
Showing 6 changed files with 913 additions and 754 deletions.
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "5.26.3",
"description": "react tooltip component",
"scripts": {
"dev-rollup": "node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.js --watch",
"build": "node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.js && npm run test",
"dev-rollup": "node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.mjs --watch",
"build": "node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.mjs && npm run test",
"dev": "node ./prebuild.js --env=development && node ./esbuild.config.dev.mjs",
"build-esbuild": "node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs",
"types": "node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.js",
"types": "node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.mjs",
"eslint": "eslint --ext=js --ext=jsx --ext=ts --ext=tsx --fix ./src",
"stylelint": "stylelint \"src/**/*.css\"",
"prettier": "prettier --config ./.prettierrc.json --write \"src/**/*{.js,.jsx,.ts,.tsx,.css}\"",
Expand All @@ -18,6 +18,7 @@
"postbuild": "npm run types && npm run bundlesize",
"prepublishOnly": "npm run build"
},
"type": "module",
"types": "dist/react-tooltip.d.ts",
"license": "MIT",
"private": false,
Expand Down Expand Up @@ -48,10 +49,10 @@
},
"homepage": "https://github.com/ReactTooltip/react-tooltip#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "22.0.2",
"@rollup/plugin-node-resolve": "14.1.0",
"@rollup/plugin-replace": "4.0.0",
"@rollup/plugin-typescript": "8.5.0",
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5",
"@rollup/plugin-typescript": "11.1.6",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.2",
Expand All @@ -62,8 +63,8 @@
"@types/react": "18.2.17",
"@types/react-dom": "18.2.22",
"@types/react-test-renderer": "18.0.7",
"@typescript-eslint/eslint-plugin": "5.54.0",
"@typescript-eslint/parser": "5.54.0",
"@typescript-eslint/eslint-plugin": "7.3.1",
"@typescript-eslint/parser": "7.3.1",
"bundlesize": "0.18.2",
"css-loader": "6.10.0",
"esbuild": "0.20.2",
Expand All @@ -86,13 +87,13 @@
"process": "^0.11.10",
"react": "16.14.0",
"react-dom": "16.14.0",
"rimraf": "^3.0.2",
"rollup": "2.79.1",
"rimraf": "5.0.5",
"rollup": "4.13.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-browsersync": "^1.3.3",
"rollup-plugin-copy": "3.5.0",
"rollup-plugin-dts": "5.2.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-dts": "6.1.0",
"rollup-plugin-filesize": "10.0.0",
"rollup-plugin-html-scaffold": "^0.2.0",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-progress": "^1.1.2",
Expand All @@ -105,7 +106,7 @@
"stylelint-config-standard": "^22.0.0",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"typescript": "4.9.5"
"typescript": "5.4.2"
},
"peerDependencies": {
"react": ">=16.14.0",
Expand Down
6 changes: 3 additions & 3 deletions prebuild.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs') // eslint-disable-line @typescript-eslint/no-var-requires
const rimraf = require('rimraf') // eslint-disable-line @typescript-eslint/no-var-requires
import fs from 'fs'
import { rimraf } from 'rimraf'

const args = process.argv.slice(2)
const parameters = args.reduce((acc, arg) => {
Expand All @@ -25,7 +25,7 @@ log(`Building for env: ${parameters.env}`)

// check if directory exists
if (fs.existsSync(dir)) {
rimraf(dir, () => {
rimraf(dir).then(() => {
fs.mkdirSync(dir)
})
} else {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rollup.config.prod.js → rollup.config.prod.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ts from '@rollup/plugin-typescript'
import { terser } from 'rollup-plugin-terser'
import typescript from 'typescript'
import replaceBeforeSaveFile from './rollup-plugins/replace-before-save-file.js'
import * as pkg from './package.json'
import pkg from './package.json' assert { type: 'json' }

const input = ['src/index.tsx']

Expand Down
File renamed without changes.
Loading

0 comments on commit 8c48e46

Please sign in to comment.