Skip to content

Commit

Permalink
Get rid of rush and move to pnpm (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Jan 24, 2024
1 parent 1f8bcfe commit ecd86c2
Show file tree
Hide file tree
Showing 52 changed files with 2,511 additions and 2,329 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["@azure-tools/typespec-*"]],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 2 additions & 0 deletions .changeset/odd-berries-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
41 changes: 41 additions & 0 deletions .github/workflows/consistency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Consistency

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch: {}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check-changes:
name: Check Changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 ## Needed for Changesets to find `main` branch
submodules: recursive

- run: git pull --force --no-tags origin main:main
name: Get main ref

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- uses: pnpm/action-setup@v2

- run: pnpm install
name: Install dependencies

- run: npx -p @changesets/cli changeset status --since=main
name: Check changelog
if: ${{ !startsWith(github.head_ref, 'publish/') && !startsWith(github.head_ref, 'dependabot/') && !startsWith(github.head_ref, 'backmerge/') }}

- run: node eng/scripts/validate-core-submodule.js
name: Check that core submodule is merged to core repo
6 changes: 4 additions & 2 deletions .github/workflows/website-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ jobs:
with:
node-version: 18.x

- uses: pnpm/action-setup@v2

- name: Install dependencies
run: node common/scripts/install-run-rush.js update
run: pnpm install

- name: Build
run: node common/scripts/install-run-rush.js build --to @azure-tools/typespec-azure-website -v
run: pnpm run build --to @azure-tools/typespec-azure-website -v
env:
TYPESPEC_WEBSITE_BASE_PATH: "/typespec-azure/"
NODE_OPTIONS: "--max_old_space_size=4096"
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
**/common/temp/
**/common/scripts/
**/common/changes/
**/common/config/rush/pnpm-lock.yaml

# Pnpm lock file
**/pnpm-lock.yaml

# Coverage report directory
**/coverage/
Expand All @@ -22,6 +24,9 @@ CODE_OF_CONDUCT.md
# These are auto-generated by rush
**/CHANGELOG.md

# Emu spec file, formatting is wrong
core/packages/spec/src/spec.emu.html

# Don't format compiler test typespec files.
core/packages/compiler/test/formatter/**/*.tsp

Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tabWidth": 2,
"plugins": [
"./core/packages/prettier-plugin-typespec/dist/index.js",
"./core/packages/compiler/node_modules/prettier-plugin-organize-imports/index.js"
"./node_modules/prettier-plugin-organize-imports/index.js"
],
"overrides": [
{
Expand Down

This file was deleted.

15 changes: 0 additions & 15 deletions common/config/rush/.npmrc

This file was deleted.

25 changes: 0 additions & 25 deletions common/config/rush/.npmrc-publish

This file was deleted.

37 changes: 0 additions & 37 deletions common/config/rush/.pnpmfile.cjs

This file was deleted.

188 changes: 0 additions & 188 deletions common/config/rush/command-line.json

This file was deleted.

Loading

0 comments on commit ecd86c2

Please sign in to comment.