Skip to content

Commit acc46c8

Browse files
committed
refactor: output the compiled files to directory lib
1 parent b57abf4 commit acc46c8

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ id_*
77
# Compiled output
88
packages/*/.types/
99
root/public/assets/
10-
root/*.js
11-
root/*.js.map
10+
root/lib/
1211

1312
# Other
1413
node_modules/

root/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
3+
"use strict";
4+
5+
require("./lib/index.js");

root/keybr.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
3+
"use strict";
4+
5+
require("./lib/keybr.js");

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ module.exports = [
115115
context: __dirname,
116116
entry: {
117117
index: "./packages/server/lib/index.ts",
118-
tools: "./packages/server-cli/lib/index.ts",
118+
keybr: "./packages/server-cli/lib/index.ts",
119119
},
120120
output: {
121-
path: join(__dirname, "root"),
121+
path: join(__dirname, "root", "lib"),
122122
clean: false,
123123
filename: "[name].js",
124124
chunkFilename: "[name].js",

0 commit comments

Comments
 (0)