Skip to content

Commit 2654d24

Browse files
committed
Fix build mistake by using lerna and npm
1 parent 6cf9ee6 commit 2654d24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+14437
-8444
lines changed

.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules/
2-
/dist/
3-
/assets/
2+
dist/
3+
assets/

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ typings/
5757
# dotenv environment variables file
5858
.env
5959

60-
/dist
61-
/assets
60+
dist/
61+
assets/

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ a P2P LAN chatting and file sharing tool
66

77
## Development
88

9-
Use [yarn](https://yarnpkg.com) to install dependencies
9+
Use [npm](https://nodejs.org/) to install dependencies
1010

1111
```
12-
$ yarn
12+
$ npm install
1313
```
1414

1515
Run the current application in development mode
1616

1717
```
18-
$ yarn start
18+
$ npm run app -- start
1919
```
2020

2121
Create packages
2222

2323
``` sh
24-
$ yarn dist # build for linux, win32, win64
25-
$ yarn dist:linux # build for linux
26-
$ yarn dist:win32 # build for win32
27-
$ yarn dist:win64 # build for win64
24+
$ npm run app -- dist # build for linux, win32, win64
25+
$ npm run app -- dist:linux # build for linux
26+
$ npm run app -- dist:win32 # build for win32
27+
$ npm run app -- dist:win64 # build for win64
2828
```
2929

30-
Then check out the output in `dist/`.
30+
Then check out the output in `packages/p2p-chat/dist`.
3131

3232
## LICENSE
3333

lerna.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"lerna": "2.1.2",
2+
"lerna": "2.2.0",
33
"version": "1.4.4",
4-
"npmClient": "yarn",
5-
"useWorkspaces": true
4+
"packages": [
5+
"packages/*"
6+
]
67
}

0 commit comments

Comments
 (0)