chore: fix builds

This commit is contained in:
mathuo 2022-08-19 17:13:41 +01:00
parent b1216dc96d
commit 6b146cf1bf
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
10 changed files with 14953 additions and 79178 deletions

View File

@ -21,14 +21,15 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.lock') }} key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- run: npm install - run: yarn install
- run: lerna bootstrap - run: lerna bootstrap
- run: npm run build
working-directory: packages/dockview working-directory: packages/dockview
- run: npm build - run: npm run build
working-directory: packages/docs working-directory: packages/docs
- run: npm run deploy-docs - run: npm run deploy-docs
working-directory: packages/docs working-directory: packages/docs

View File

@ -19,14 +19,13 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.lock') }} key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- run: npm install - run: yarn
- run: npm run bootstrap - run: npm run bootstrap
working-directory: packages/dockview - run: npm run build
- run: npm build
- run: npm run test:cov - run: npm run test:cov
- name: SonarCloud Scan - name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master uses: SonarSource/sonarcloud-github-action@master

View File

@ -2,8 +2,9 @@
"packages": [ "packages": [
"packages/*" "packages/*"
], ],
"useWorkspaces": true,
"version": "1.5.1", "version": "1.5.1",
"npmClient": "npm", "npmClient": "yarn",
"command": { "command": {
"publish": { "publish": {
"message": "chore(release): publish %s" "message": "chore(release): publish %s"

53026
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,20 @@
{ {
"name": "dockview-monorepo-root", "name": "dockview-monorepo-root",
"private": true, "private": true,
"workspaces": [
"packages/*"
],
"nohoist": [
"**/babel-jest",
"**/babel-jest/**"
],
"description": "Monorepo for https://github.com/mathuo/dockview", "description": "Monorepo for https://github.com/mathuo/dockview",
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"lint": "eslint packages/**/src/** --ext .ts,.tsx,.js,.jsx", "lint": "eslint packages/**/src/** --ext .ts,.tsx,.js,.jsx",
"package": "node scripts/package.js", "package": "node scripts/package.js",
"package-all": "lerna run docs --scope dockview && node scripts/package.js", "package-all": "lerna run docs --scope dockview && node scripts/package.js",
"build": "lerna run build --scope dockview",
"clean": "lerna run clean", "clean": "lerna run clean",
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"test:cov": "jest --coverage", "test:cov": "jest --coverage",

File diff suppressed because it is too large Load Diff

View File

@ -48,12 +48,12 @@ const config = {
alias: { alias: {
react: path.join( react: path.join(
__dirname, __dirname,
'node_modules', '../../node_modules',
'react' 'react'
), ),
'react-dom': path.join( 'react-dom': path.join(
__dirname, __dirname,
'node_modules', '../../node_modules',
'react-dom' 'react-dom'
), ),
}, },

File diff suppressed because it is too large Load Diff

View File

@ -42,8 +42,10 @@
"typescript": "^4.6.4" "typescript": "^4.6.4"
}, },
"resolutions": { "resolutions": {
"react": "^17.0.2", "react": "17.0.2",
"react-dom": "^17.0.2" "react-dom": "17.0.2",
"@types/react": "17.0.35",
"@types/react-dom": "17.0.11"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [

14930
yarn.lock Normal file

File diff suppressed because it is too large Load Diff