Skip to content

Commit

Permalink
chore(ts): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wang1212 committed Jul 29, 2023
1 parent 3a3985d commit 991e4e6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 24 deletions.
4 changes: 1 addition & 3 deletions templates/typescript/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# docs: https://github.com/browserslist/browserslist
# see https://browserslist.dev/?q=ZGVmYXVsdHM%3D

defaults
# see https://browsersl.ist/#q=defaults
20 changes: 15 additions & 5 deletions templates/typescript/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@ module.exports = {
extends: ['@wang1212/eslint-config/typescript'],
ignorePatterns: [
'node_modules',
'.husky',
'.github',
'dist',
'build',
'coverage',
'assets',
'public',
'docs',
'examples',
'scripts',
'types',
'vendors',
'docs',
'public',
'example',
'.babelrc.cjs',
'.commitlintrc.cjs',
'.eslintrc.cjs',
'.lintstagedrc.mjs',
'jest.config.mjs',
'rollup.config.js',
'index.esm.js',
'index.umd.js',
],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
22 changes: 11 additions & 11 deletions templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@
"@commitlint/cli": "17.6.7",
"@commitlint/config-conventional": "17.6.7",
"@release-it/conventional-changelog": "^7.0.0",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "22.0.2",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-replace": "4.0.0",
"@rollup/plugin-strip": "2.1.0",
"@rollup/plugin-url": "7.0.0",
"@rollup/plugin-virtual": "2.1.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "25.0.3",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-strip": "3.0.2",
"@rollup/plugin-url": "8.0.1",
"@rollup/plugin-virtual": "3.0.1",
"@types/jest": "29.5.3",
"@types/node": "18.17.0",
"@typescript-eslint/eslint-plugin": "6.2.0",
Expand All @@ -100,12 +100,12 @@
"prettier": "3.0.0",
"release-it": "*",
"rollup": "2.79.1",
"rollup-plugin-esbuild": "4.10.3",
"rollup-plugin-filesize": "9.1.2",
"rollup-plugin-esbuild": "5.0.0",
"rollup-plugin-filesize": "10.0.0",
"rollup-plugin-progress": "1.1.2",
"rollup-plugin-styles": "4.0.0",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-visualizer": "5.8.3",
"rollup-plugin-visualizer": "5.9.2",
"sass": "1.64.1",
"typescript": "5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ if (isEnvProduction) {
function generateTypesEntryFile(config) {
config.output.forEach((item) => {
const bundleFile = path.join(WORKING_DIRECTORY, item.file);
fse.writeFileSync(
fse.outputFileSync(
bundleFile.replace(path.extname(bundleFile), '.d.ts'),
'export * from "../types"',
{ encoding: 'utf-8' }
Expand Down
20 changes: 16 additions & 4 deletions templates/typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,24 @@
},
"include": ["src", "vendors/@types"],
"exclude": [
".eslintrc.cjs",
"docs",
"public",
"node_modules",
"dist",
"build",
"coverage",
"assets",
"public",
"docs",
"examples",
"scripts",
"example"
"types",
"vendors",
".babelrc.cjs",
".commitlintrc.cjs",
".eslintrc.cjs",
".lintstagedrc.mjs",
"jest.config.mjs",
"rollup.config.js",
"index.esm.js",
"index.umd.js"
]
}

0 comments on commit 991e4e6

Please sign in to comment.