File tree Expand file tree Collapse file tree 13 files changed +202
-29
lines changed
download-leetcode-submissions
fetch-leetcode-problem-list
fetch-recent-accepted-leetcode-submissions
post-leetcode-potd-to-discord Expand file tree Collapse file tree 13 files changed +202
-29
lines changed Original file line number Diff line number Diff line change 75
75
"@types/react-syntax-highlighter" : " 15.5.13" ,
76
76
"cross-env" : " 7.0.3" ,
77
77
"eslint" : " 9.11.1" ,
78
+ "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
78
79
"jest" : " 29.7.0" ,
79
80
"prettier" : " 3.3.3" ,
80
81
"prettier-plugin-java" : " 2.6.4" ,
Original file line number Diff line number Diff line change 1
1
import { execSync } from "node:child_process" ;
2
2
import path from "node:path" ;
3
3
4
- import webpack , { type Configuration } from "webpack" ;
4
+ import { DefinePlugin , type Configuration } from "webpack" ;
5
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
5
6
6
7
import { WEB_APP_DIST } from "./src/scripts/build/constants.ts" ;
7
8
@@ -24,7 +25,6 @@ const config: Configuration = {
24
25
{
25
26
loader : "ts-loader" ,
26
27
options : {
27
- // TODO: Consider using fork-ts-checker-webpack-plugin for typechecking.
28
28
transpileOnly : true ,
29
29
} ,
30
30
} ,
@@ -39,9 +39,11 @@ const config: Configuration = {
39
39
} ,
40
40
41
41
plugins : [
42
- new webpack . DefinePlugin ( {
42
+ new DefinePlugin ( {
43
43
ADVENTURE_PACK_COMMIT_HASH : JSON . stringify ( commitHash ) ,
44
44
} ) ,
45
+
46
+ new ForkTsCheckerWebpackPlugin ( ) ,
45
47
] ,
46
48
47
49
optimization : {
Original file line number Diff line number Diff line change 32
32
"@types/node" : " 22.7.4" ,
33
33
"cross-env" : " 7.0.3" ,
34
34
"eslint" : " 9.11.1" ,
35
+ "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
35
36
"prettier" : " 3.3.3" ,
36
37
"ts-loader" : " 9.5.1" ,
37
38
"tsx" : " 4.19.1" ,
Original file line number Diff line number Diff line change 1
1
import { builtinModules } from "node:module" ;
2
2
import path from "node:path" ;
3
3
4
- import webpack , {
4
+ import {
5
+ BannerPlugin ,
5
6
type Configuration ,
6
7
type ExternalItemFunctionData ,
7
8
} from "webpack" ;
9
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
8
10
9
11
import { stripPrefix } from "@code-chronicles/util/stripPrefix" ;
10
12
import { stripPrefixOrThrow } from "@code-chronicles/util/stripPrefixOrThrow" ;
@@ -28,7 +30,6 @@ const config: Configuration = {
28
30
{
29
31
loader : "ts-loader" ,
30
32
options : {
31
- // TODO: Consider using fork-ts-checker-webpack-plugin for typechecking.
32
33
transpileOnly : true ,
33
34
} ,
34
35
} ,
@@ -53,11 +54,13 @@ const config: Configuration = {
53
54
) ,
54
55
55
56
plugins : [
56
- new webpack . BannerPlugin ( {
57
+ new BannerPlugin ( {
57
58
banner : "#!/usr/bin/env node\n" ,
58
59
raw : true ,
59
60
entryOnly : true ,
60
61
} ) ,
62
+
63
+ new ForkTsCheckerWebpackPlugin ( ) ,
61
64
] ,
62
65
} ;
63
66
Original file line number Diff line number Diff line change 30
30
"@types/node" : " 22.7.4" ,
31
31
"cross-env" : " 7.0.3" ,
32
32
"eslint" : " 9.11.1" ,
33
+ "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
33
34
"prettier" : " 3.3.3" ,
34
35
"ts-loader" : " 9.5.1" ,
35
36
"tsx" : " 4.19.1" ,
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import { chmod } from "node:fs/promises";
2
2
import { builtinModules } from "node:module" ;
3
3
import path from "node:path" ;
4
4
5
- import webpack , {
5
+ import {
6
+ BannerPlugin ,
6
7
type Compiler ,
7
8
type Configuration ,
8
9
type ExternalItemFunctionData ,
9
10
} from "webpack" ;
11
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
10
12
11
13
import { stripPrefix } from "@code-chronicles/util/stripPrefix" ;
12
14
import { stripPrefixOrThrow } from "@code-chronicles/util/stripPrefixOrThrow" ;
@@ -59,7 +61,6 @@ const config: Configuration = {
59
61
{
60
62
loader : "ts-loader" ,
61
63
options : {
62
- // TODO: Consider using fork-ts-checker-webpack-plugin for typechecking.
63
64
transpileOnly : true ,
64
65
} ,
65
66
} ,
@@ -84,13 +85,15 @@ const config: Configuration = {
84
85
) ,
85
86
86
87
plugins : [
87
- new webpack . BannerPlugin ( {
88
+ new BannerPlugin ( {
88
89
banner : "#!/usr/bin/env node\n" ,
89
90
raw : true ,
90
91
entryOnly : true ,
91
92
} ) ,
92
93
93
94
new WebpackMakeOutputExecutablePlugin ( ) ,
95
+
96
+ new ForkTsCheckerWebpackPlugin ( ) ,
94
97
] ,
95
98
} ;
96
99
Original file line number Diff line number Diff line change 30
30
"@types/node" : " 22.7.4" ,
31
31
"cross-env" : " 7.0.3" ,
32
32
"eslint" : " 9.11.1" ,
33
+ "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
33
34
"prettier" : " 3.3.3" ,
34
35
"ts-loader" : " 9.5.1" ,
35
36
"tsx" : " 4.19.1" ,
Original file line number Diff line number Diff line change 1
1
import { builtinModules } from "node:module" ;
2
2
import path from "node:path" ;
3
3
4
- import webpack , {
4
+ import {
5
+ BannerPlugin ,
5
6
type Configuration ,
6
7
type ExternalItemFunctionData ,
7
8
} from "webpack" ;
9
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
8
10
9
11
import { stripPrefix } from "@code-chronicles/util/stripPrefix" ;
10
12
import { stripPrefixOrThrow } from "@code-chronicles/util/stripPrefixOrThrow" ;
@@ -28,7 +30,6 @@ const config: Configuration = {
28
30
{
29
31
loader : "ts-loader" ,
30
32
options : {
31
- // TODO: Consider using fork-ts-checker-webpack-plugin for typechecking.
32
33
transpileOnly : true ,
33
34
} ,
34
35
} ,
@@ -53,11 +54,13 @@ const config: Configuration = {
53
54
) ,
54
55
55
56
plugins : [
56
- new webpack . BannerPlugin ( {
57
+ new BannerPlugin ( {
57
58
banner : "#!/usr/bin/env node\n" ,
58
59
raw : true ,
59
60
entryOnly : true ,
60
61
} ) ,
62
+
63
+ new ForkTsCheckerWebpackPlugin ( ) ,
61
64
] ,
62
65
} ;
63
66
Original file line number Diff line number Diff line change 30
30
"@types/node" : " 22.7.4" ,
31
31
"cross-env" : " 7.0.3" ,
32
32
"eslint" : " 9.11.1" ,
33
+ "fork-ts-checker-webpack-plugin" : " 9.0.2" ,
33
34
"prettier" : " 3.3.3" ,
34
35
"ts-loader" : " 9.5.1" ,
35
36
"tsx" : " 4.19.1" ,
Original file line number Diff line number Diff line change 1
1
import path from "node:path" ;
2
2
3
3
import type { Configuration } from "webpack" ;
4
+ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
4
5
5
6
import packageJson from "./package.json" with { type : "json" } ;
6
7
@@ -20,7 +21,6 @@ const config: Configuration = {
20
21
{
21
22
loader : "ts-loader" ,
22
23
options : {
23
- // TODO: Consider using fork-ts-checker-webpack-plugin for typechecking.
24
24
transpileOnly : true ,
25
25
} ,
26
26
} ,
@@ -33,6 +33,8 @@ const config: Configuration = {
33
33
resolve : {
34
34
conditionNames : [ "import" ] ,
35
35
} ,
36
+
37
+ plugins : [ new ForkTsCheckerWebpackPlugin ( ) ] ,
36
38
} ;
37
39
38
40
export default config ;
You can’t perform that action at this time.
0 commit comments