Skip to content

Commit

Permalink
fix: fix import/export path (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Oct 14, 2022
1 parent 4cd94c1 commit 5c41875
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"types": "lib/index.d.ts",
"exports": {
".": "./lib/index.js",
"./*": "./"
"./*": "./*"
},
"repository": "prettier/yaml-unist-parser",
"homepage": "https://github.com/prettier/yaml-unist-parser#readme",
Expand Down
12 changes: 8 additions & 4 deletions src/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@
// tslint:disable:variable-name

import YAML from "yaml";
import { CST } from "yaml/parse-cst.js";
// eslint-disable-next-line import/extensions
import { CST } from "yaml/parse-cst";
import {
Alias as _Alias,
Merge as _Merge,
Node as _Node,
Pair as _Pair,
Scalar as _Scalar,
} from "yaml/types.js";
// eslint-disable-next-line import/extensions
} from "yaml/types";

export const { Document, parseCST } = YAML;
export { ParsedCST } from "yaml/parse-cst.js";
export { YAMLError, YAMLSyntaxError, YAMLSemanticError } from "yaml/util.js";
// eslint-disable-next-line import/extensions
export { ParsedCST } from "yaml/parse-cst";
// eslint-disable-next-line import/extensions
export { YAMLError, YAMLSyntaxError, YAMLSemanticError } from "yaml/util";

export namespace ast {
export type Alias = _Alias;
Expand Down

0 comments on commit 5c41875

Please sign in to comment.