Skip to content

Commit

Permalink
upgrade node, various build packages, other cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemhiller committed Jul 9, 2024
1 parent cc7f214 commit b83a1a7
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: Codecademy/run-on-yarn@v1
- uses: Codecademy/run-on-yarn@v2
with:
command: compile
node-version: 20
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: Codecademy/run-on-yarn@v1
- uses: Codecademy/run-on-yarn@v2
with:
command: ${{ matrix.command }}
node-version: 20

strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.2
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io)
![TypeScript: Strict](https://img.shields.io/badge/typescript-strict-brightgreen.svg)
[![NPM version](https://badge.fury.io/js/component-test-setup.svg)](http://badge.fury.io/js/component-test-setup)
[![Circle CI](https://img.shields.io/circleci/build/github/Codecademy/component-test-setup.svg)](https://circleci.com/gh/Codecademy/component-test-setup)
[![Join the chat at https://gitter.im/Codecademy/component-test-setup](https://badges.gitter.im/Codecademy/component-test-setup.svg)](https://gitter.im/Codecademy/component-test-setup?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Standardized test setup methods for React components.
Expand Down
4 changes: 1 addition & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
node: "12",
},
targets: "default",
},
],
"@babel/preset-react",
Expand Down
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"author": "Codecademy",
"description": "Standardized test setup methods for React components in tests.",
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@testing-library/react": "^15.0.0",
"@types/jest": "^26.0.20",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"babel-jest": "^26.6.3",
"babel-jest": "^29.7.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"husky": "^4.3.7",
"jest": "^26.6.3",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"prettier": "^3.3.2",
"react": "^18.0.1",
"react-dom": "^18.0.1",
"typescript": "^4.9.5"
Expand Down Expand Up @@ -55,6 +55,9 @@
"test:ci": "jest --maxWorkers=2",
"compile": "tsc --module commonjs"
},
"engines": {
"node": ">=18.0.0"
},
"types": "src/index.d.ts",
"version": "1.0.0"
}
Loading

0 comments on commit b83a1a7

Please sign in to comment.