Skip to content

Commit

Permalink
fix(types): add types field to exports
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed May 23, 2022
1 parent 7eec6bd commit b96e62a
Show file tree
Hide file tree
Showing 8 changed files with 3,159 additions and 2,895 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-files-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'markuplint-angular-parser': patch
---

fix(types): add types field to exports
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
matrix:
node:
- 12
- 14
- 16
- 18
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -40,12 +40,11 @@ jobs:
PARSER_NO_WATCH: true

- name: Codecov
uses: codecov/codecov-action@v3

- name: Codacy Coverage
run: |
yarn global add codecov
codecov
bash <(curl -Ls https://coverage.codacy.com/get.sh)
env:
CI: 'true'
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODACY_ACCOUNT_TOKEN: ${{ secrets.CODACY_ACCOUNT_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"typecov": "type-coverage"
},
"devDependencies": {
"@1stg/lib-config": "^5.4.0",
"@1stg/lib-config": "^6.1.1",
"@changesets/changelog-github": "^0.4.4",
"@changesets/cli": "^2.22.0",
"@markuplint/rule-textlint": "^2.3.1",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"markuplint": "^2.5.0",
"@markuplint/rule-textlint": "^2.5.2",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.35",
"markuplint": "^2.8.0",
"snapshot-diff": "^0.9.0",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"ts-jest": "^28.0.2",
"ts-node": "^10.8.0",
"type-coverage": "^2.21.1",
"typescript": "^4.6.3"
"typescript": "^4.6.4"
},
"resolutions": {
"prettier": "^2.6.2"
Expand Down
13 changes: 7 additions & 6 deletions packages/angular-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
"engines": {
"node": ">=v10"
},
"main": "lib/index.js",
"module": "lib/index.es2019.mjs",
"main": "./lib/index.js",
"module": "./lib/index.es2019.mjs",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.es2019.mjs",
"require": "./lib/index.js"
},
"types": "lib",
"types": "./lib/index.d.ts",
"files": [
"lib",
"!*.tsbuildinfo"
Expand All @@ -29,11 +30,11 @@
"angular-linter"
],
"dependencies": {
"@markuplint/html-parser": "^2.0.0",
"@markuplint/html-parser": "^2.2.1",
"@markuplint/ml-ast": "^2.0.0",
"@markuplint/parser-utils": "^2.0.0",
"@markuplint/parser-utils": "^2.2.0",
"angular-html-parser": "^1.8.0",
"tslib": "^2.3.1"
"tslib": "^2.4.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit b96e62a

Please sign in to comment.