Skip to content

Commit bda3a65

Browse files
committed
chore: mark @angular-eslint/template-parser as peer
1 parent c621476 commit bda3a65

File tree

7 files changed

+35
-11
lines changed

7 files changed

+35
-11
lines changed

.eslintcache

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ jobs:
3434
${{ runner.os }}-yarn-
3535
3636
- name: Install Dependencies
37-
run: yarn --frozen-lockfile
37+
# https://github.com/atlassian/changesets/issues/246
38+
run: |
39+
yarn --frozen-lockfile
40+
rm -rf .git/hooks/commit-msg
3841
3942
- name: Create Release Pull Request or Publish to npm
4043
id: changesets
4144
uses: changesets/action@master
4245
with:
4346
# This expects you to have a script called release which does a build for your packages and calls changeset publish
44-
publish: yarn release
47+
publish: npm run release
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4750
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.tsbuildinfo
2+
.*cache
23
node_modules
34
/index.d.ts

.renovaterc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@1stg"
4+
]
5+
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
/**
2727
* @param {string} code
2828
* @param {Options} options
29-
* @returns {ESLintParseResult['ast']} parsed AST result
29+
* @returns {import('eslint').AST.Program} parsed AST result
3030
*/
3131
parse: (code, options) => parseForESLint(code, options).ast,
3232
}

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
],
1313
"scripts": {
1414
"build": "tsc -p jsconfig.json",
15-
"init": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
16-
"lint": "eslint .",
17-
"prerelease": "yarn build",
18-
"release": "changeset publish"
15+
"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"
1919
},
20-
"dependencies": {
20+
"peerDependencies": {
2121
"@angular-eslint/template-parser": "*"
2222
},
2323
"devDependencies": {
2424
"@1stg/common-config": "^2.0.0",
25+
"@angular-eslint/template-parser": "^12.0.0",
2526
"@changesets/changelog-github": "^0.4.0",
2627
"@changesets/cli": "^2.16.0",
2728
"@types/eslint": "^7.2.10",
29+
"clean-publish": "^2.2.0",
2830
"typescript": "^4.2.4"
2931
}
3032
}

yarn.lock

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
resolved "https://registry.yarnpkg.com/@1stg/tsconfig/-/tsconfig-1.3.1.tgz#c4c0624ea35061478f99aa7f7abb24ee7e721eae"
135135
integrity sha512-1BcT806MEe0RwnD0/PaIlcDy4tCVa+kjuKVo5y4PGN4Cvs4pAA9kMaczqExNJ0ay280SfrUraGDz1WTltK57bQ==
136136

137-
"@angular-eslint/template-parser@*":
137+
"@angular-eslint/template-parser@^12.0.0":
138138
version "12.0.0"
139139
resolved "https://registry.yarnpkg.com/@angular-eslint/template-parser/-/template-parser-12.0.0.tgz#5b2ea31d4a9338cfe4a52689de36c8b00b94f286"
140140
integrity sha512-gl5ansA2a8LY6TEjhe0k8NiQJJdEQPjjqpysO1Rpt3NWUYQkFMt+1+AnUyokHB1TU3/11dHRUjVWXj+pMtTIAA==
@@ -2436,6 +2436,15 @@ ci-info@^3.1.1:
24362436
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.1.1.tgz#9a32fcefdf7bcdb6f0a7e1c0f8098ec57897b80a"
24372437
integrity sha512-kdRWLBIJwdsYJWYJFtAFFYxybguqeF91qpZaggjG5Nf8QKdizFG2hjqvaTXbxFIcYbSaD74KpAXv6BSm17DHEQ==
24382438

2439+
clean-publish@^2.2.0:
2440+
version "2.2.0"
2441+
resolved "https://registry.yarnpkg.com/clean-publish/-/clean-publish-2.2.0.tgz#3d249934128757e457dc060511a056d32487f38d"
2442+
integrity sha512-U+/Y5YXbxnqWlh8y/toKSEGbMvIvsgfkfJ7yK0v0uQ1mz07lNNSxceY7XaFweEw8LFQo8Al3H7SuQHXbf5Xw8g==
2443+
dependencies:
2444+
cross-spawn "^7.0.3"
2445+
fs-extra "^9.1.0"
2446+
lilconfig "^2.0.2"
2447+
24392448
clean-regexp@^1.0.0:
24402449
version "1.0.0"
24412450
resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7"
@@ -3449,7 +3458,7 @@ fs-extra@^8.1.0:
34493458
jsonfile "^4.0.0"
34503459
universalify "^0.1.0"
34513460

3452-
fs-extra@^9.0.0:
3461+
fs-extra@^9.0.0, fs-extra@^9.1.0:
34533462
version "9.1.0"
34543463
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
34553464
integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==
@@ -4075,6 +4084,11 @@ levn@^0.4.1:
40754084
prelude-ls "^1.2.1"
40764085
type-check "~0.4.0"
40774086

4087+
lilconfig@^2.0.2:
4088+
version "2.0.2"
4089+
resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.2.tgz#9f802752254697d22a5c33e88d97b7329008c060"
4090+
integrity sha512-4zUThttj8TQ4N7Pps92Z79jPf1OMcll4m61pivQSVk5MT78hVhNa2LrKTuNYD0AGLpmpf7zeIKOxSt6hHBfypw==
4091+
40784092
lines-and-columns@^1.1.6:
40794093
version "1.1.6"
40804094
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"

0 commit comments

Comments
 (0)