Skip to content

Commit 65eb492

Browse files
authored
chore: add sass types and stub webpack-dev-middleware (#577)
* chore: add `sass` types and stub webpack-dev-middleware * ci: build project
1 parent c4ddc0c commit 65eb492

File tree

5 files changed

+48
-18
lines changed

5 files changed

+48
-18
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Run tests
2929
run: yarn test
3030

31+
- name: Build project
32+
run: yarn build
33+
3134
- name: Coverage
3235
run: yarn codecov
3336
env:

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"jest": "^29.5.0",
2020
"lerna": "^6.5.1",
2121
"nuxt": "2.x",
22+
"sass": "^1.59.3",
2223
"ts-jest": "^29.0.5",
2324
"typescript": "^4.9.5",
2425
"vue-property-decorator": "^9.1.2"

stub.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare const _default: any;
2+
export declare type Options<A, B> = any;
3+
export default _default;

tsconfig.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
{
22
"compilerOptions": {
3+
"forceConsistentCasingInFileNames": true,
34
"target": "ES6",
4-
"lib": ["DOM", "ESNext"],
5+
"lib": [
6+
"DOM",
7+
"ESNext"
8+
],
59
"module": "CommonJS",
610
"moduleResolution": "Node",
711
"esModuleInterop": true,
812
"strict": true,
913
"noFallthroughCasesInSwitch": true,
1014
"noImplicitReturns": true,
1115
"stripInternal": true,
12-
"noUnusedLocals": true
16+
"noUnusedLocals": true,
17+
"paths": {
18+
"webpack-dev-middleware": [
19+
"./stub.d.ts"
20+
]
21+
}
1322
}
1423
}

yarn.lock

+30-16
Original file line numberDiff line numberDiff line change
@@ -3999,6 +3999,21 @@ chardet@^0.7.0:
39993999
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
40004000
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==
40014001

4002+
"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.2, chokidar@^3.5.3:
4003+
version "3.5.3"
4004+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
4005+
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
4006+
dependencies:
4007+
anymatch "~3.1.2"
4008+
braces "~3.0.2"
4009+
glob-parent "~5.1.2"
4010+
is-binary-path "~2.1.0"
4011+
is-glob "~4.0.1"
4012+
normalize-path "~3.0.0"
4013+
readdirp "~3.6.0"
4014+
optionalDependencies:
4015+
fsevents "~2.3.2"
4016+
40024017
chokidar@^2.1.8:
40034018
version "2.1.8"
40044019
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
@@ -4018,21 +4033,6 @@ chokidar@^2.1.8:
40184033
optionalDependencies:
40194034
fsevents "^1.2.7"
40204035

4021-
chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.2, chokidar@^3.5.3:
4022-
version "3.5.3"
4023-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
4024-
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
4025-
dependencies:
4026-
anymatch "~3.1.2"
4027-
braces "~3.0.2"
4028-
glob-parent "~5.1.2"
4029-
is-binary-path "~2.1.0"
4030-
is-glob "~4.0.1"
4031-
normalize-path "~3.0.0"
4032-
readdirp "~3.6.0"
4033-
optionalDependencies:
4034-
fsevents "~2.3.2"
4035-
40364036
chownr@^1.1.1:
40374037
version "1.1.4"
40384038
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
@@ -6779,6 +6779,11 @@ ignore@^5.0.4, ignore@^5.1.1, ignore@^5.2.0, ignore@^5.2.4:
67796779
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
67806780
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
67816781

6782+
immutable@^4.0.0:
6783+
version "4.3.0"
6784+
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.0.tgz#eb1738f14ffb39fd068b1dbe1296117484dd34be"
6785+
integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==
6786+
67826787
import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1:
67836788
version "3.3.0"
67846789
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -10827,6 +10832,15 @@ safe-regex@^2.1.1:
1082710832
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
1082810833
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
1082910834

10835+
sass@^1.59.3:
10836+
version "1.59.3"
10837+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.59.3.tgz#a1ddf855d75c70c26b4555df4403e1bbf8e4403f"
10838+
integrity sha512-QCq98N3hX1jfTCoUAsF3eyGuXLsY7BCnCEg9qAact94Yc21npG2/mVOqoDvE0fCbWDqiM4WlcJQla0gWG2YlxQ==
10839+
dependencies:
10840+
chokidar ">=3.0.0 <4.0.0"
10841+
immutable "^4.0.0"
10842+
source-map-js ">=0.6.2 <2.0.0"
10843+
1083010844
1083110845
version "2.7.0"
1083210846
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
@@ -11130,7 +11144,7 @@ source-list-map@^2.0.0:
1113011144
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
1113111145
integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==
1113211146

11133-
source-map-js@^1.0.2:
11147+
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2:
1113411148
version "1.0.2"
1113511149
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
1113611150
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==

0 commit comments

Comments
 (0)