Skip to content

Commit 1d4a6b5

Browse files
authored
chore: bump deps for plugin metadata (#70)
1 parent e10bbc8 commit 1d4a6b5

File tree

10 files changed

+14113
-7379
lines changed

10 files changed

+14113
-7379
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"changelog": [
44
"@changesets/changelog-github",
55
{
6-
"repo": "rx-ts/angular-eslint-template-parser"
6+
"repo": "un-ts/angular-eslint-template-parser"
77
}
88
],
99
"commit": false,

.changeset/selfish-tables-rest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"angular-eslint-template-parser": patch
3+
---
4+
5+
chore: bump deps for plugin metadata

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"node": "14",
2+
"node": "20",
33
"sandboxes": []
44
}

.github/workflows/release.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,42 @@ on:
44
push:
55
branches:
66
- main
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
710

811
jobs:
912
release:
1013
name: Release
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout Repo
14-
uses: actions/checkout@master
17+
uses: actions/checkout@v4
1518
with:
1619
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1720
fetch-depth: 0
1821

19-
- name: Setup Node.js 14.x
20-
uses: actions/setup-node@master
21-
with:
22-
node-version: 14.x
23-
24-
- name: Get yarn cache directory path
25-
id: yarn-cache-dir-path
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
22+
- name: Enable Corepack
23+
run: corepack enable
2724

28-
- uses: actions/cache@v2
29-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
25+
- name: Setup Node.js LTS
26+
uses: actions/setup-node@v4
3027
with:
31-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33-
restore-keys: |
34-
${{ runner.os }}-yarn-
28+
node-version: lts/*
29+
cache: yarn
3530

3631
- name: Install Dependencies
37-
# https://github.com/atlassian/changesets/issues/246
3832
run: |
39-
yarn --frozen-lockfile
40-
rm -rf .git/hooks/commit-msg
33+
yarn --immutable
4134
4235
- name: Create Release Pull Request or Publish to npm
4336
id: changesets
44-
uses: changesets/action@master
37+
uses: changesets/action@v1
4538
with:
4639
# This expects you to have a script called release which does a build for your packages and calls changeset publish
47-
publish: npm run release
40+
publish: yarn release
41+
commit: 'chore: release angular-eslint-template-parser'
42+
title: 'chore: release angular-eslint-template-parser'
4843
env:
4944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5045
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
enableTelemetry: false
2+
3+
nodeLinker: node-modules
4+
5+
plugins:
6+
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
7+
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
8+
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"

index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
// @ts-check
22

33
/**
4-
* @typedef {import('eslint').Linter.ESLintParseResult} ESLintParseResult
5-
* @typedef {{ filePath: string }} Options
4+
* @import { Linter } from 'eslint'
5+
* @import { ParserOptions } from '@angular-eslint/template-parser'
66
*/
77

8-
const _ =
9-
/** @type {{parseForESLint: (code: string, options: Options) => ESLintParseResult}} */ (
10-
/** @type {any} */ (require('@angular-eslint/template-parser'))
11-
)
8+
const _ = require('@angular-eslint/template-parser')
129

1310
/**
1411
* @param {string} code
15-
* @param {Options} options
16-
* @returns {ESLintParseResult} parse result with AST
12+
* @param {ParserOptions} options
13+
* @returns {Linter.ESLintParseResult} parse result with AST
1714
*/
1815
const parseForESLint = (code, options) => {
1916
const result = _.parseForESLint(code, options)
2017
result.ast.body = result.ast.body || []
21-
return result
18+
return /** @type {Linter.ESLintParseResult} */ (
19+
/** @type {unknown} */ (result)
20+
)
2221
}
2322

2423
module.exports = {
24+
..._,
2525
parseForESLint,
2626
/**
2727
* @param {string} code
28-
* @param {Options} options
28+
* @param {ParserOptions} options
2929
* @returns {import('eslint').AST.Program} parsed AST result
3030
*/
3131
parse: (code, options) => parseForESLint(code, options).ast,

package.json

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "angular-eslint-template-parser",
33
"version": "0.1.1",
4-
"repository": "git+https://github.com/rx-ts/angular-eslint-template-parser.git",
4+
"repository": "git+https://github.com/un-ts/angular-eslint-template-parser.git",
55
"author": "JounQin <[email protected]>",
66
"license": "MIT",
7+
"packageManager": "[email protected]",
78
"main": "index.js",
89
"types": "index.d.ts",
910
"files": [
@@ -13,22 +14,30 @@
1314
"scripts": {
1415
"build": "tsc -p jsconfig.json",
1516
"lint": "eslint --cache .",
16-
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
17-
"prerelease": "npm run build",
18-
"release": "clean-publish && changeset publish"
17+
"prepack": "clean-pkg-json",
18+
"prepare": "simple-git-hooks || exit 0",
19+
"prerelease": "yarn build",
20+
"release": "changeset publish"
1921
},
2022
"peerDependencies": {
2123
"@angular-eslint/template-parser": "*"
2224
},
2325
"devDependencies": {
24-
"@1stg/common-config": "^2.5.2",
25-
"@angular-eslint/template-parser": "^12.7.0",
26-
"@angular/compiler": "^12.2.17",
27-
"@angular/core": "^12.2.17",
26+
"@1stg/common-config": "^10.0.0",
27+
"@angular-eslint/template-parser": "^19.2.0",
28+
"@angular/compiler": "^19.2.1",
29+
"@angular/core": "^19.2.1",
2830
"@changesets/changelog-github": "^0.5.1",
2931
"@changesets/cli": "^2.28.1",
30-
"@types/eslint": "^7.29.0",
31-
"clean-publish": "^2.2.0",
32-
"typescript": "^4.9.5"
32+
"@commitlint/cli": "^18.6.1",
33+
"@types/eslint": "^8.56.12",
34+
"clean-pkg-json": "^1.2.0",
35+
"eslint": "^8.57.1",
36+
"lint-staged": "^15.4.3",
37+
"simple-git-hooks": "^2.11.1",
38+
"typescript": "^5.8.2"
39+
},
40+
"resolutions": {
41+
"eslint-plugin-jsdoc": "^48.3.0"
3342
}
3443
}

0 commit comments

Comments
 (0)