Skip to content

Commit 38681f7

Browse files
author
Sascha Goldhofer
committed
Refactor move index to root level
1 parent a8bc1bc commit 38681f7

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export { default as get } from "./lib/get";
2+
export { default as set } from "./lib/set";
3+
export { default as split } from "./lib/split";
4+
export { default as remove } from "./lib/remove";

lib/index.ts

-4
This file was deleted.

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
]
1818
},
1919
"include": [
20+
"index.ts",
2021
"lib/**/*"
2122
]
2223
}

webpack.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ const PRODUCTION = process.env.NODE_ENV === "production";
44

55

66
const config = {
7-
entry: [
8-
"./lib/index.ts"
9-
],
7+
entry: "./index.ts",
108
mode: PRODUCTION ? "production" : "development",
119
context: __dirname,
1210
target: "web",
@@ -46,12 +44,6 @@ const config = {
4644

4745
optimization: {
4846
minimizer: [new TerserPlugin()]
49-
},
50-
51-
devServer: {
52-
port: 8071,
53-
disableHostCheck: true,
54-
host: "0.0.0.0"
5547
}
5648
};
5749

0 commit comments

Comments
 (0)