Skip to content

Commit

Permalink
Merge pull request #148 from alexreardon/upgrading-deps-2
Browse files Browse the repository at this point in the history
Upgrading dev dependencies
  • Loading branch information
alexreardon authored Sep 28, 2022
2 parents 98970f6 + cd36a34 commit f733088
Show file tree
Hide file tree
Showing 7 changed files with 787 additions and 765 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
- package-ecosystem: 'npm'
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
directory: '/'
# Always increase the version requirement to match the new version.
versioning-strategy: increase
# Check the npm registry for updates at the start of every week
schedule:
interval: "weekly"
day: "monday"
time: "08:00"
timezone: "Australia/Sydney"
interval: 'monthly'
day: 'monday'
time: '08:00'
timezone: 'Australia/Sydney'
15 changes: 10 additions & 5 deletions .github/workflows/bundle-size-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: '.nvmrc'
# Using node action to manage caching node_modules
cache: 'yarn'

# The size limit github action
- uses: andresz1/size-limit-action@v1
- name: Run size limit github action
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18'
- name: Checkout code
uses: actions/checkout@v3

- name: Restore dependency cache
uses: actions/cache@v2
- name: Setup node
uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
node-version-file: '.nvmrc'
# Using node action to manage caching node_modules
cache: 'yarn'

- name: Install dependencies
run: yarn install

# Run tests
- name: Tests
- name: Run tests
run: yarn test
16 changes: 7 additions & 9 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18'
- name: Checkout code
uses: actions/checkout@v3

- name: Restore dependency cache
uses: actions/cache@v2
- name: Setup node
uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
node-version-file: '.nvmrc'
# Using node action to manage caching node_modules
cache: 'yarn'

- name: Install dependencies
run: yarn install
Expand Down
11 changes: 4 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',

globals: {
'ts-jest': {
diagnostics: false,
},
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testEnvironment: 'node',
};
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{
"path": "dist/tiny-invariant.esm.js",
"import": "foo",
"limit": "104B"
"limit": "112B"
}
],
"scripts": {
Expand All @@ -68,19 +68,19 @@
},
"devDependencies": {
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-typescript": "^8.3.3",
"@size-limit/preset-small-lib": "^7.0.8",
"@types/jest": "^28.1.4",
"@rollup/plugin-typescript": "^8.5.0",
"@size-limit/preset-small-lib": "^8.1.0",
"@types/jest": "^29.0.3",
"@types/rollup": "^0.54.0",
"expect-type": "^0.13.0",
"jest": "^28.1.2",
"expect-type": "^0.14.2",
"jest": "^29.0.3",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"rollup": "^2.75.7",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"size-limit": "^7.0.8",
"ts-jest": "^28.0.5",
"size-limit": "^8.1.0",
"ts-jest": "^29.0.2",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"typescript": "^4.8.4"
}
}
Loading

0 comments on commit f733088

Please sign in to comment.