From 324c740a246fd593620f89f26835acedbd4bf732 Mon Sep 17 00:00:00 2001 From: Matthias Giger Date: Thu, 23 Jun 2022 18:37:14 +0200 Subject: [PATCH] feat(package): update project and add tsconfig ending for modern loaders release-npm --- configuration/tsconfig.js | 2 +- package.json | 46 +++++++++++++++++++-------------------- utility/configuration.js | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/configuration/tsconfig.js b/configuration/tsconfig.js index fe21075..b2f5bd0 100644 --- a/configuration/tsconfig.js +++ b/configuration/tsconfig.js @@ -4,7 +4,7 @@ import { getOptions } from '../utility/options.js' export const tsconfig = (tsconfigUserOverrides = {}) => { const options = getOptions() let userTSConfig = { - extends: 'padua/configuration/tsconfig', + extends: 'padua/configuration/tsconfig.json', } // The local tsconfig in this package will be written and the user config is extending it. diff --git a/package.json b/package.json index 1042321..6b5fa2a 100644 --- a/package.json +++ b/package.json @@ -10,17 +10,17 @@ "test": "jest" }, "dependencies": { - "@babel/eslint-parser": "^7.17.0", - "@babel/preset-env": "^7.16.11", - "@types/jest": "^27.4.1", - "@typescript-eslint/eslint-plugin": "^5.18.0", - "@typescript-eslint/parser": "^5.18.0", - "babel-jest": "^27.5.1", + "@babel/eslint-parser": "^7.18.2", + "@babel/preset-env": "^7.18.2", + "@types/jest": "^28.1.3", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", + "babel-jest": "^28.1.1", "current-git-branch": "^1.1.0", "deep-for-each": "^3.0.0", "deepmerge": "^4.2.2", - "esbuild": "^0.14.34", - "eslint": "^8.13.0", + "esbuild": "^0.14.47", + "eslint": "^8.18.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-prettier": "^8.5.0", @@ -28,37 +28,37 @@ "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.29.4", - "eslint-plugin-react-hooks": "^4.4.0", + "eslint-plugin-react": "^7.30.0", + "eslint-plugin-react-hooks": "^4.6.0", "fast-glob": "^3.2.11", - "filesize": "^8.0.7", + "filesize": "^9.0.9", "gzip-size": "^7.0.0", "is-ci": "^3.0.1", - "jest": "^27.5.1", + "jest": "^28.1.1", "lodash.get": "^4.4.2", "lodash.set": "^4.3.2", "lodash.unset": "^4.5.2", "logua": "^2.1.4", - "npm-check-updates": "^12.5.8", - "pacote": "^13.1.1", + "npm-check-updates": "^14.1.0", + "pacote": "^13.6.1", "pakag": "^2.6.0", - "parse-gitignore": "^1.0.1", - "prettier": "^2.6.2", + "parse-gitignore": "^2.0.0", + "prettier": "^2.7.1", "rimraf": "^3.0.2", - "skip-local-postinstall": "^2.0.2", - "standard-version": "^9.3.2", + "skip-local-postinstall": "^2.0.3", + "standard-version": "^9.5.0", "strip-ansi": "^7.0.1", - "stylelint": "^14.6.1", - "stylelint-config-recommended": "^7.0.0", - "ts-jest": "^27.1.4", - "typescript": "^4.6.3" + "stylelint": "^14.9.1", + "stylelint-config-recommended": "^8.0.0", + "ts-jest": "^28.0.5", + "typescript": "^4.7.4" }, "type": "module", "main": "index.js", "bin": "cli.js", "source": "index.js", "devDependencies": { - "jest-fixture": "^3.0.0" + "jest-fixture": "^3.0.1" }, "files": [ "configuration", diff --git a/utility/configuration.js b/utility/configuration.js index d969bc3..168ef40 100644 --- a/utility/configuration.js +++ b/utility/configuration.js @@ -257,7 +257,7 @@ export const writeGitIgnore = (gitIgnoreOverrides = []) => { let entries = [] if (existsSync(gitIgnorePath)) { - entries = entries.concat(parse(readFileSync(gitIgnorePath, 'utf8'))) + entries = entries.concat(parse(readFileSync(gitIgnorePath, 'utf8')).patterns) } entries = entries.concat(gitignore(gitIgnoreOverrides))