feat: move electron a single package

This commit is contained in:
himself65
2023-03-27 22:30:03 -05:00
parent bdc29fc5f8
commit bf85db1952
6 changed files with 17123 additions and 4129 deletions

View File

@@ -72,6 +72,17 @@ runs:
YARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz
HUSKY: '0'
- name: yarn install (electron)
if: ${{ inputs.package-install == 'true' }}
shell: bash
run: yarn install ${{ inputs.extra-flags }}
working-directory: packages/electron
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
YARN_ENABLE_GLOBAL_CACHE: 'false'
YARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz
HUSKY: '0'
- name: Get installed Playwright version
id: playwright-version
shell: bash

8
apps/electron/.yarn.yml Normal file
View File

@@ -0,0 +1,8 @@
cacheFolder: '../../.yarn/cache'
deferredVersionFolder: '../../.yarn/versions'
globalFolder: '../../.yarn/global'
installStatePath: '../../.yarn/install-state.gz'
patchFolder: '../../.yarn/patches'
pnpUnpluggedFolder: '../../.yarn/unplugged'
yarnPath: '../../.yarn/releases/yarn-3.5.0.cjs'
virtualFolder: '../../.yarn/__virtual__'

View File

@@ -6,6 +6,10 @@
"author": "affine",
"description": "AFFiNE App",
"homepage": "https://github.com/toeverything/AFFiNE",
"workspaces": [
"../../packages/*",
"../../tests/fixtures"
],
"scripts": {
"dev": "cross-env NODE_ENV=development node scripts/dev.mjs",
"prod": "cross-env NODE_ENV=production node scripts/dev.mjs",
@@ -42,9 +46,5 @@
"electron-window-state": "^5.0.3",
"fs-extra": "^11.1.1"
},
"dependenciesMeta": {
"electron": {
"built": false
}
}
"packageManager": "yarn@3.5.0"
}

17005
apps/electron/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,7 @@
"author": "toeverything",
"license": "MPL-2.0",
"workspaces": [
"apps/*",
"apps/(!electron)",
"packages/*",
"tests/fixtures"
],

4216
yarn.lock

File diff suppressed because it is too large Load Diff