Skip to content

Commit 6710507

Browse files
committed
Never install optional packages
1 parent 32348d6 commit 6710507

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-optional true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In readium-desktop project
1717

1818
### Install readium-desktop dependencies
1919

20-
1) `yarn install --ignore-optional --pure-lockfile` (initialize local `node_modules` packages from dependencies declared in `package.json`)
20+
1) `yarn install` (initialize local `node_modules` packages from dependencies declared in `package.json`)
2121
2) `yarn pouchdb:install`
2222

2323
### Start application in dev environment

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"start:dev:renderer": "webpack-dev-server",
2323
"start:dev:main": "webpack -d && electron .",
2424
"start:dev": "concurrently --kill-others \"npm run start:dev:renderer\" \"npm run start:dev:main\"",
25-
"pouchdb:install": "yarn add -O --no-lockfile @types/pouchdb && yarn add --no-lockfile --ignore-scripts -O pouchdb && cd node_modules/pouchdb && cross-env npm_config_runtime=electron npm_config_target=53 yarn add --no-lockfile -O leveldown@latest"
25+
"pouchdb:install": "yarn add -O --no-lockfile --ignore-scripts leveldown && yarn add --no-lockfile --ignore-scripts -O pouchdb && cd node_modules/pouchdb && cross-env npm_config_runtime=electron npm_config_target=53 yarn add --no-lockfile leveldown@latest && cd ../.. && yarn remove leveldown --no-lockfile --ignore-scripts"
2626
},
2727
"repository": {
2828
"type": "git",
@@ -110,7 +110,5 @@
110110
"webpack": "^2.2.1",
111111
"webpack-dev-server": "^2.4.1"
112112
},
113-
"optionalDependencies": {
114-
"pouchdb": "^6.2.0"
115-
}
113+
"optionalDependencies": {}
116114
}

0 commit comments

Comments
 (0)