Skip to content

Commit

Permalink
Upgrade to Yarn v3
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Mar 27, 2023
1 parent dfdafe9 commit 4922418
Show file tree
Hide file tree
Showing 11 changed files with 7,926 additions and 5,295 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 16.x
cache: yarn

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: echo '::add-matcher::.github/cspell-problem-matcher.json'
- run: yarn spellcheck --no-progress

Expand All @@ -33,7 +33,7 @@ jobs:
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn workspace @foxglove/mcap-conformance lint:ci
- run: yarn workspace @foxglove/mcap-conformance typecheck

Expand All @@ -52,7 +52,7 @@ jobs:
path: ~/.conan/data
key: ${{ runner.os }}-${{ hashFiles('cpp/**/conanfile.py') }}
- run: cd cpp && make ci
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner cpp-

Expand All @@ -70,7 +70,7 @@ jobs:
with:
go-version: 1.18.x
- run: cd go && make build-conformance-binaries
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner go-

Expand All @@ -88,7 +88,7 @@ jobs:
with:
python-version: 3.7
- run: cd python && pip install -e mcap
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner py-

Expand All @@ -102,7 +102,7 @@ jobs:
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner ts-

Expand All @@ -116,7 +116,7 @@ jobs:
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner ksy-

Expand All @@ -134,7 +134,7 @@ jobs:
with:
swift-version: "5.7"
- run: swift build
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner swift-

Expand All @@ -153,7 +153,7 @@ jobs:
toolchain: stable
default: true
- run: cd rust && cargo build --example=conformance_reader
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn test:conformance:generate-inputs --verify
- run: yarn test:conformance --runner rust-

Expand All @@ -166,7 +166,7 @@ jobs:
node-version: 16.x
cache: yarn

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn docs:lint

cpp:
Expand All @@ -177,7 +177,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
lfs: "true"
lfs: true
- uses: actions/cache@v3
with:
path: ~/.conan/data
Expand All @@ -198,7 +198,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
lfs: "true"
lfs: true
- uses: actions/cache@v3
with:
path: ~/.conan/data
Expand All @@ -219,7 +219,7 @@ jobs:
node-version: 16.x
cache: yarn
registry-url: https://registry.npmjs.org
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn workspace @mcap/core lint:ci
- run: yarn workspace @mcap/core typecheck
- run: yarn workspace @mcap/core test
Expand All @@ -238,7 +238,7 @@ jobs:
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn workspace @foxglove/mcap-example-validate lint:ci
- run: yarn workspace @foxglove/mcap-example-validate typecheck
- run: yarn workspace @foxglove/mcap-benchmarks lint:ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Expand Up @@ -63,7 +63,7 @@ jobs:
- run: mkdir __docs__
- name: Generate TypeScript documentation
run: |
yarn install --frozen-lockfile
yarn install --immutable
yarn typedoc
- run: tar -czf docs-typescript.tgz __docs__/typescript
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -8,6 +8,8 @@ __docs__
dist
site/
.cache
.pnp.*
.yarn

*.db3-shm
*.db3-wal
3 changes: 3 additions & 0 deletions .yarnrc.yml
@@ -0,0 +1,3 @@
defaultSemverRangePrefix: ""

nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -22,5 +22,6 @@
"prettier": "^2.8.4",
"tailwindcss": "^3.2.7",
"typedoc": "^0.23.25"
}
},
"packageManager": "yarn@3.5.0"
}
7 changes: 7 additions & 0 deletions typescript/README.md
@@ -1,5 +1,12 @@
# TypeScript libraries for MCAP

Install dependencies:

```
corepack enable
yarn install
```

Run lint/tests:

```
Expand Down
3 changes: 1 addition & 2 deletions typescript/benchmarks/package.json
Expand Up @@ -38,6 +38,5 @@
"ts-node": "10.9.1",
"tsconfig-paths": "4.1.2",
"typescript": "4.9.5"
},
"dependencies": {}
}
}
2 changes: 0 additions & 2 deletions typescript/core/.yarnrc

This file was deleted.

3 changes: 1 addition & 2 deletions typescript/examples/bag2mcap/package.json
Expand Up @@ -51,6 +51,5 @@
"ts-node": "10.9.1",
"tsconfig-paths": "4.1.2",
"typescript": "4.9.5"
},
"dependencies": {}
}
}
3 changes: 1 addition & 2 deletions typescript/examples/validate/package.json
Expand Up @@ -51,6 +51,5 @@
"ts-node": "10.9.1",
"tsconfig-paths": "4.1.2",
"typescript": "4.9.5"
},
"dependencies": {}
}
}

0 comments on commit 4922418

Please sign in to comment.