Skip to content

Commit

Permalink
upgrage mod & ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxBing0066 committed Nov 24, 2021
1 parent ffc5493 commit ce9e5ad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"z-sandbox": "^0.0.11"
},
"devDependencies": {
"@rapiop/mod": "^0.1.0",
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.3.4",
Expand All @@ -50,6 +49,7 @@
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.3.3",
"@rapiop/mod": "^1",
"@types/lodash": "^4.14.136",
"@types/tapable": "^1.0.4",
"babel-eslint": "^10.0.1",
Expand All @@ -63,14 +63,14 @@
"jest": "^25.3.0",
"prettier": "^1",
"typedoc": "^0.15.0",
"typescript": "^3.3.3333",
"typescript": "^4.5.2",
"webpack": "^4.23.1",
"webpack-bundle-analyzer": "^3.5.2",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.11"
},
"peerDependencies": {
"@rapiop/mod": "^0.1.0"
"@rapiop/mod": "^0.1 | ^1"
},
"jest": {
"testMatch": [
Expand Down
12 changes: 8 additions & 4 deletions src/lib/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ function getExtension(path: string = '') {
}

export const classifyFiles = (files: string[]) => {
const classifyFiles = {
js: [] as string[],
css: [] as string[],
unknown: [] as string[]
const classifyFiles: {
js: string[];
css: string[];
unknown: string[];
} = {
js: [],
css: [],
unknown: []
};
const { js, css, unknown } = classifyFiles;
files.forEach(file => {
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1165,10 +1165,10 @@
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@rapiop/mod@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@rapiop/mod/-/mod-0.1.0.tgz#322ec10153180066926a8c19a8e43da6150ce411"
integrity sha512-fDEWblQhodpZlAEyf1uCu6TQOlI6MtD0/7wnuwGzDi05IfNwF8ZjzTk9Z34rdqzV6QgbfG+elB55SmMmZAzgWg==
"@rapiop/mod@^1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@rapiop/mod/-/mod-1.1.2.tgz#190b27dea067e02454fe58b5a145c37e97fd7843"
integrity sha512-HDMB9DBdFn8aLZdFN0y+FP2iLEcC+b2nJKzmv3y2fN+MNJvCdp8RPWpWOar2W6wmrj1x48jgp+aA1uDEoCDgRw==
dependencies:
"@babel/runtime" "^7.10.2"
core-js "^3.6.5"
Expand Down Expand Up @@ -7578,10 +7578,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"
integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==

typescript@^3.3.3333:
version "3.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da"
integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==
typescript@^4.5.2:
version "4.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==

[email protected]:
version "3.4.10"
Expand Down

0 comments on commit ce9e5ad

Please sign in to comment.