File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " yaml-eslint-parser " : patch
3
+ ---
4
+
5
+ Fix ` yaml ` import in ESM
Original file line number Diff line number Diff line change 44
44
uses : coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
45
45
with :
46
46
github-token : ${{ secrets.GITHUB_TOKEN }}
47
+ strict-type-check :
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - uses : actions/setup-node@v4
52
+ - name : Install Packages
53
+ run : npm install -f
54
+ - name : Strict type-check
55
+ run : npm run strict-type-check
Original file line number Diff line number Diff line change 25
25
"benchmark" : " ts-node --transpile-only benchmark/index.ts" ,
26
26
"prerelease" : " npm run clean && npm run build" ,
27
27
"release" : " changeset publish" ,
28
- "version:ci" : " env-cmd -e version-ci npm run build:meta && changeset version"
28
+ "version:ci" : " env-cmd -e version-ci npm run build:meta && changeset version" ,
29
+ "strict-type-check" : " tsc --project ./tsconfig.build.json --noEmit --module esnext --moduleResolution bundler"
29
30
},
30
31
"repository" : {
31
32
"type" : " git" ,
Original file line number Diff line number Diff line change 1
- import { parseDocument } from "yaml" ;
2
- import type { Directives } from "yaml/dist/doc/directives" ;
1
+ import { parseDocument , type DocumentOptions } from "yaml" ;
3
2
import type {
4
3
YAMLProgram ,
5
4
YAMLContent ,
@@ -15,7 +14,7 @@ import type {
15
14
} from "./ast" ;
16
15
import { tagNodeResolvers , tagResolvers } from "./tags" ;
17
16
18
- export type YAMLVersion = Directives [ "yaml" ] [ " version"] ;
17
+ export type YAMLVersion = NonNullable < DocumentOptions [ " version"] > ;
19
18
20
19
export type YAMLContentValue =
21
20
| string
You can’t perform that action at this time.
0 commit comments