Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit da48bd6

Browse files
committed
Upgrade dependencies to their latest versions
1 parent 2553b62 commit da48bd6

File tree

6 files changed

+3223
-3338
lines changed

6 files changed

+3223
-3338
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
12.19.0

jest.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
module.exports = {
2-
globals: {
3-
'ts-jest': {
4-
isolatedModules: true,
5-
},
6-
},
2+
cacheDirectory: '<rootDir>/temp/cache/jest',
73
testEnvironment: 'node',
84
testMatch: ['<rootDir>/tests/**/*.test.ts'],
95
testPathIgnorePatterns: ['<rootDir>/node_modules'],
@@ -18,4 +14,9 @@ module.exports = {
1814
'!**/node_modules/**',
1915
],
2016
preset: 'ts-jest',
17+
globals: {
18+
'ts-jest': {
19+
isolatedModules: true,
20+
},
21+
},
2122
};

package.json

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -24,66 +24,65 @@
2424
},
2525
"homepage": "https://github.com/wavevision/sprites-constants-generator-plugin",
2626
"dependencies": {
27-
"@wavevision/ts-utils": "^0.4.0",
27+
"@wavevision/ts-utils": "^0.4.3",
2828
"cheerio": "^1.0.0-rc.3",
2929
"handlebars": "^4.5.1",
3030
"json-schema": "^0.2.5",
3131
"lodash.camelcase": "^4.3.0",
32-
"schema-utils": "^2.5.0"
32+
"schema-utils": "^3.0.0"
3333
},
3434
"devDependencies": {
35-
"@types/cheerio": "^0.22.13",
36-
"@types/jest": "^24.0.22",
35+
"@types/cheerio": "^0.22.22",
36+
"@types/jest": "^26.0.15",
3737
"@types/lodash.camelcase": "^4.3.6",
38-
"@types/node": "12",
39-
"@types/svg-sprite-loader": "^3.9.1",
40-
"@types/webpack": "^4.39.8",
41-
"@types/webpack-dev-server": "^3.4.0",
42-
"@types/webpack-env": "^1.14.1",
43-
"@typescript-eslint/eslint-plugin": "^2.6.1",
44-
"@typescript-eslint/parser": "^2.6.1",
45-
"@wavevision/coding-standard": "^3.0.1",
46-
"coveralls": "^3.0.7",
47-
"eslint": "^6.6.0",
48-
"jest": "^24.9.0",
49-
"nock": "^11.7.0",
38+
"@types/node": "^12",
39+
"@types/svg-sprite-loader": "^3.9.2",
40+
"@types/webpack": "^4.41.24",
41+
"@types/webpack-dev-server": "^3.11.0",
42+
"@types/webpack-env": "^1.15.3",
43+
"@wavevision/coding-standard": "^5.2.1",
44+
"coveralls": "^3.1.0",
45+
"eslint": "^7.12.1",
46+
"eslint-plugin-jest": "^24",
47+
"jest": "^26.6.1",
48+
"nock": "^13.0.4",
5049
"npm-run-all": "^4.1.5",
51-
"svg-sprite-loader": "^4.1.6",
52-
"ts-jest": "^24.1.0",
53-
"ts-loader": "^6.2.1",
54-
"ts-node": "^8.4.1",
55-
"typescript": "^3.6.4",
56-
"webpack": "^4.41.2",
57-
"webpack-cli": "^3.3.10"
50+
"svg-sprite-loader": "^5.0.0",
51+
"ts-jest": "^26.4.3",
52+
"ts-loader": "^8.0.7",
53+
"ts-node": "^9.0.0",
54+
"typescript": "^4.0.5",
55+
"webpack": "^4.44.2",
56+
"webpack-cli": "^4.1.0"
5857
},
5958
"peerDependencies": {
60-
"svg-sprite-loader": "^4.x",
59+
"svg-sprite-loader": "^5.x",
6160
"svgxuse": "^1.x"
6261
},
6362
"scripts": {
64-
"build": "NODE_ENV=production run-s clean ts:build template",
65-
"ci": "run-s ts:check eslint prettier test:coverage:report",
63+
"build": "NODE_ENV=production run-s clean ts-build template",
64+
"ci": "run-s ts-check eslint prettier test-coverage-report",
6665
"clean": "rm -rf dist/*",
6766
"eslint": "eslint src tests --cache --ext .ts",
68-
"eslint:fix": "yarn eslint --fix",
69-
"fix": "run-s ts:check eslint:fix prettier:fix test",
70-
"postversion": "run-s postversion:push:tags postversion:publish postversion:push postversion:echo",
71-
"postversion:echo": "echo \"Successfully released version $npm_package_version!\"",
72-
"postversion:publish": "yarn publish --access public --new-version $npm_package_version",
73-
"postversion:push": "git push",
74-
"postversion:push:tags": "yarn postversion:push --tags",
67+
"eslint-fix": "yarn eslint --fix",
68+
"fix": "run-s ts-check eslint-fix prettier-fix test",
69+
"postversion": "run-s postversion-push:tags postversion-publish postversion-push postversion--cho",
70+
"postversion-echo": "echo \"Successfully released version $npm_package_version!\"",
71+
"postversion-publish": "yarn publish --access public --new-version $npm_package_version",
72+
"postversion-push": "git push",
73+
"postversion-push:tags": "yarn postversion_push --tags",
7574
"prettier": "prettier '**/*.ts' --check",
76-
"prettier:fix": "yarn prettier --write",
75+
"prettier-fix": "yarn prettier --write",
7776
"prepare": "npm run build",
7877
"preversion": "yarn fix",
7978
"template": "cp src/template.hbs dist",
80-
"test": "jest",
81-
"test:coverage": "jest --coverage || true",
82-
"test:coverage:report": "jest --coverage && cat temp/coverage/lcov.info | coveralls",
79+
"test": "jest --runInBand",
80+
"test-coverage": "yarn test --coverage",
81+
"test-coverage-report": "yarn test-coverage && cat temp/coverage/lcov.info | coveralls",
8382
"ts": "tsc",
84-
"ts:build": "yarn ts --project tsconfig.build.json",
85-
"ts:check": "yarn ts --noEmit",
86-
"webpack": "run-s build webpack:build",
87-
"webpack:build": "webpack --config tests/webpack.config.ts"
83+
"ts-build": "yarn ts --project tsconfig.build.json",
84+
"ts-check": "yarn ts --noEmit",
85+
"webpack": "run-s build webpack-build",
86+
"webpack-build": "webpack --config tests/webpack.config.ts"
8887
}
8988
}

src/SpritesConstantsGeneratorPlugin/Generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Generator {
5454
const className = filterClassName(baseName);
5555
const constants: Array<{ name: string; value: string }> = [];
5656
$content('svg defs symbol').each(
57-
(index: number, element: CheerioElement) => {
57+
(index: number, element: cheerio.Element) => {
5858
const value = $(element).attr('id');
5959
if (!value) {
6060
throw new Error('SVG symbol ID is missing.');

src/SpritesConstantsGeneratorPlugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { resolve } from 'path';
22

3-
import validate from 'schema-utils';
43
import webpack from 'webpack';
4+
import { validate } from 'schema-utils';
55

66
import Generator from './Generator';
77
import schema from './schema';

0 commit comments

Comments
 (0)