Skip to content

Commit 78bc50d

Browse files
committed
chore: Move config dependencies into its own folder
1 parent ead4a19 commit 78bc50d

File tree

4 files changed

+9
-25
lines changed

4 files changed

+9
-25
lines changed

.copyconfigrc.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
/** @typedef {import('@wireapp/copy-config').CopyConfigOptions} CopyConfigOptions */
44

5-
//@ts-ignore
6-
const pkg = require('./package.json');
5+
const appConfigPkg = require('./app-config/package.json');
76

87
const contentSource = 'wire-desktop/content';
98
const imageSource = `${contentSource}/image`;
109
const macOsSource = `${contentSource}/macos`;
1110

1211
const configurationEntry = `wire-web-config-${process.env.APP_ENV !== 'internal' ? 'production' : 'internal'}`;
13-
const repositoryUrl = pkg.devDependencies[configurationEntry];
12+
const repositoryUrl = appConfigPkg.dependencies[configurationEntry];
1413

1514
/** @type {CopyConfigOptions} */
1615
const options = {

app-config/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {
3+
"wire-web-config-internal": "https://github.com/wireapp/wire-web-config-default#v0.26.0",
4+
"wire-web-config-production": "https://github.com/wireapp/wire-web-config-wire#v0.26.1-0"
5+
}
6+
}

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@
105105
"ts-node": "8.10.2",
106106
"typescript": "3.9.6",
107107
"webpack": "4.43.0",
108-
"webpack-cli": "3.3.12",
109-
"wire-web-config-internal": "https://github.com/wireapp/wire-web-config-default#v0.25.2",
110-
"wire-web-config-production": "https://github.com/wireapp/wire-web-config-wire#v0.25.3-0"
108+
"webpack-cli": "3.3.12"
111109
},
112110
"homepage": "https://wire.com",
113111
"husky": {

yarn.lock

-19
Original file line numberDiff line numberDiff line change
@@ -1968,11 +1968,6 @@ acorn@^7.1.1:
19681968
resolved "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz#e35668de0b402f359de515c5482a1ab9f89a69bf"
19691969
integrity sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==
19701970

1971-
1972-
version "0.4.14"
1973-
resolved "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.14.tgz#2cf312bcc9f8875df835b0f6040bd89be0a727a9"
1974-
integrity sha512-/9aQCnQHF+0IiCl0qhXoK7qs//SwYE7zX8lsr/DNk1BRAHYxeLZPL4pguwK29gUEqasYQjqPtEpDRSWEkdHn9g==
1975-
19761971
19771972
version "0.4.16"
19781973
resolved "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz#cf4c508fdffab02c269cbc7f471a875f05570365"
@@ -10892,20 +10887,6 @@ [email protected]:
1089210887
resolved "https://registry.npmjs.org/winreg/-/winreg-1.2.4.tgz#ba065629b7a925130e15779108cf540990e98d1b"
1089310888
integrity sha1-ugZWKbepJRMOFXeRCM9UCZDpjRs=
1089410889

10895-
"wire-web-config-internal@https://github.com/wireapp/wire-web-config-default#v0.25.2":
10896-
version "0.25.2"
10897-
resolved "https://github.com/wireapp/wire-web-config-default#b76562ac53cf5c775e53b5355539ddaaf7532dfc"
10898-
dependencies:
10899-
adm-zip "0.4.14"
10900-
sort-json "2.0.0"
10901-
10902-
"wire-web-config-production@https://github.com/wireapp/wire-web-config-wire#v0.25.3-0":
10903-
version "0.25.3-0"
10904-
resolved "https://github.com/wireapp/wire-web-config-wire#ef6306ca27c8e9aeaa2ee27c16f134d7a1dd7256"
10905-
dependencies:
10906-
adm-zip "0.4.14"
10907-
sort-json "2.0.0"
10908-
1090910890
word-wrap@~1.2.3:
1091010891
version "1.2.3"
1091110892
resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"

0 commit comments

Comments
 (0)