Skip to content

Commit

Permalink
DEV: Move deprecation-finder to its own package (#60)
Browse files Browse the repository at this point in the history
This will allow us to update the root package.json/lockfile like any other theme/plugin.

Also deletes the `/list_ember_deprecations.rb` script which has been superseded by `./scripts/update_ember_deprecations.rb`
  • Loading branch information
davidtaylorhq authored Feb 6, 2025
1 parent f50ec76 commit c0041af
Show file tree
Hide file tree
Showing 9 changed files with 1,775 additions and 1,295 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/update-discourse-core-deprecations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ jobs:
with:
node-version: 21

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: deprecation-finder/package.json

- name: pnpm install
run: |
npm install -g pnpm
pnpm install
run: pnpm -C deprecation-finder install

- name: Run deprecation script
id: run-script
run: |
node ./scripts/update_discourse_core_deprecations.mjs ./discourse
node ./deprecation-finder/update_discourse_core_deprecations.mjs ./discourse
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions deprecation-finder/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"private": true,
"devDependencies": {
"@babel/parser": "^7.26.2",
"@babel/preset-env": "^7.26.0",
"@babel/traverse": "^7.25.9",
"@babel/types": "^7.26.0",
"content-tag": "^2.0.3",
"js-yaml": "^4.1.0"
},
"engines": {
"node": ">= 18",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">= 9"
},
"packageManager": "pnpm@9.15.5"
}
Loading

0 comments on commit c0041af

Please sign in to comment.