Skip to content

Commit 3c7f880

Browse files
committed
fix: update deps
2 parents 1f7c5b8 + fec3fea commit 3c7f880

4 files changed

Lines changed: 52 additions & 39 deletions

File tree

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,24 @@
313313
"contributions": [
314314
"code"
315315
]
316+
},
317+
{
318+
"login": "nstepien",
319+
"name": "Nicolas Stepien",
320+
"avatar_url": "https://avatars.githubusercontent.com/u/567105?v=4",
321+
"profile": "https://github.com/nstepien",
322+
"contributions": [
323+
"code"
324+
]
325+
},
326+
{
327+
"login": "KSVarun",
328+
"name": "Varun",
329+
"avatar_url": "https://avatars.githubusercontent.com/u/15784650?v=4",
330+
"profile": "https://github.com/KSVarun",
331+
"contributions": [
332+
"doc"
333+
]
316334
}
317335
]
318336
}

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: npm run validate
4141

4242
- name: ⬆️ Upload coverage report
43-
uses: codecov/codecov-action@v1
43+
uses: codecov/codecov-action@v2
4444

4545
release:
4646
needs: main

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
],
3636
"license": "MIT",
3737
"dependencies": {
38-
"@babel/cli": "^7.14.3",
39-
"@babel/core": "^7.14.3",
40-
"@babel/plugin-proposal-class-properties": "^7.13.0",
41-
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
42-
"@babel/plugin-transform-runtime": "^7.14.3",
43-
"@babel/preset-env": "^7.14.4",
44-
"@babel/preset-react": "^7.13.13",
45-
"@babel/preset-typescript": "^7.13.0",
46-
"@babel/runtime": "^7.14.0",
38+
"@babel/cli": "^7.14.5",
39+
"@babel/core": "^7.14.6",
40+
"@babel/plugin-proposal-class-properties": "^7.14.5",
41+
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
42+
"@babel/plugin-transform-runtime": "^7.14.5",
43+
"@babel/preset-env": "^7.14.7",
44+
"@babel/preset-react": "^7.14.5",
45+
"@babel/preset-typescript": "^7.14.5",
46+
"@babel/runtime": "^7.14.6",
4747
"@rollup/plugin-babel": "^5.3.0",
48-
"@rollup/plugin-commonjs": "^19.0.0",
48+
"@rollup/plugin-commonjs": "^19.0.1",
4949
"@rollup/plugin-json": "^4.1.0",
50-
"@rollup/plugin-node-resolve": "^13.0.0",
51-
"@rollup/plugin-replace": "^2.4.2",
52-
"@types/jest": "^26.0.23",
50+
"@rollup/plugin-node-resolve": "^13.0.2",
51+
"@rollup/plugin-replace": "^3.0.0",
52+
"@types/jest": "^26.0.24",
5353
"arrify": "^2.0.1",
54-
"babel-jest": "^27.0.2",
54+
"babel-jest": "^27.0.6",
5555
"babel-plugin-macros": "^3.1.0",
5656
"babel-plugin-minify-dead-code-elimination": "^0.5.1",
5757
"babel-plugin-module-resolver": "^4.1.0",
@@ -65,32 +65,32 @@
6565
"cpy": "^8.1.2",
6666
"cross-env": "^7.0.3",
6767
"cross-spawn": "^7.0.3",
68-
"doctoc": "^2.0.0",
69-
"eslint": "^7.27.0",
7068
"eslint-config-crisfcodes": "^19.2.2",
69+
"doctoc": "^2.0.1",
70+
"eslint": "^7.31.0",
7171
"glob": "^7.1.7",
7272
"husky": "^4.3.8",
7373
"is-ci": "^3.0.0",
74-
"jest": "^27.0.4",
74+
"jest": "^27.0.6",
7575
"jest-serializer-path": "^0.1.15",
7676
"jest-snapshot-serializer-raw": "^1.2.0",
7777
"jest-watch-typeahead": "^0.6.4",
78-
"lint-staged": "^11.0.0",
78+
"lint-staged": "^11.0.1",
7979
"lodash.camelcase": "^4.3.0",
8080
"lodash.has": "^4.5.2",
8181
"lodash.omit": "^4.5.0",
8282
"mkdirp": "^1.0.4",
83-
"prettier": "2.3.0",
83+
"prettier": "2.3.2",
8484
"read-pkg-up": "^7.0.1",
8585
"resolve": "^1.20.0",
8686
"rimraf": "^3.0.2",
87-
"rollup": "^2.50.6",
87+
"rollup": "^2.53.2",
8888
"rollup-plugin-node-builtins": "^2.1.2",
8989
"rollup-plugin-node-globals": "^1.4.0",
9090
"rollup-plugin-terser": "^7.0.2",
9191
"semver": "^7.3.5",
9292
"which": "^2.0.2",
93-
"yargs-parser": "^20.2.7"
93+
"yargs-parser": "^20.2.9"
9494
},
9595
"eslintConfig": {
9696
"extends": [

src/config/jest.config.js

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const path = require('path')
2-
const {ifAnyDep, hasFile, hasPkgProp, fromRoot} = require('../utils')
1+
const path = require('path');
2+
const {ifAnyDep, hasFile, hasPkgProp} = require('../utils');
33

4-
const here = p => path.join(__dirname, p)
4+
const here = p => path.join(__dirname, p);
55

6-
const useBuiltInBabelConfig = !hasFile('.babelrc') && !hasPkgProp('babel')
6+
const useBuiltInBabelConfig = !hasFile('.babelrc') && !hasPkgProp('babel');
77

88
const ignores = [
99
'/node_modules/',
@@ -12,23 +12,18 @@ const ignores = [
1212
'/__tests__/helpers/',
1313
'/__tests__/utils/',
1414
'__mocks__',
15-
]
15+
];
1616

1717
const jestConfig = {
18-
roots: [fromRoot('src')],
18+
roots: ['<rootDir>/src'],
1919
testEnvironment: ifAnyDep(
2020
['webpack', 'rollup', 'react', 'preact'],
2121
'jsdom',
2222
'node',
2323
),
2424
testURL: 'http://localhost',
2525
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
26-
moduleDirectories: [
27-
'node_modules',
28-
fromRoot('src'),
29-
'shared',
30-
fromRoot('tests'),
31-
],
26+
modulePaths: ['<rootDir>/src', 'shared', '<rootDir>/tests'],
3227
collectCoverageFrom: ['src/**/*.+(js|jsx|ts|tsx)'],
3328
testMatch: ['**/__tests__/**/*.+(js|jsx|ts|tsx)'],
3429
testPathIgnorePatterns: [...ignores],
@@ -50,21 +45,21 @@ const jestConfig = {
5045
require.resolve('jest-serializer-path'),
5146
require.resolve('jest-snapshot-serializer-raw/always'),
5247
],
53-
}
48+
};
5449

5550
const setupFiles = [
5651
'tests/setup-env.js',
5752
'tests/setup-env.ts',
5853
'tests/setup-env.tsx',
59-
]
54+
];
6055
for (const setupFile of setupFiles) {
6156
if (hasFile(setupFile)) {
62-
jestConfig.setupFilesAfterEnv = [fromRoot(setupFile)]
57+
jestConfig.setupFilesAfterEnv = [`<rootDir>/${setupFile}`];
6358
}
6459
}
6560

6661
if (useBuiltInBabelConfig) {
67-
jestConfig.transform = {'^.+\\.(js|jsx|ts|tsx)$': here('./babel-transform')}
62+
jestConfig.transform = {'^.+\\.(js|jsx|ts|tsx)$': here('./babel-transform')};
6863
}
6964

70-
module.exports = jestConfig
65+
module.exports = jestConfig;

0 commit comments

Comments
 (0)