-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ES module exports + set type in package.json (Fixes #138)
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import opt from './dist/tags/options.js' | ||
export const binaryOptions = opt.binaryOptions | ||
export const boolOptions = opt.boolOptions | ||
export const nullOptions = opt.nullOptions | ||
export const strOptions = opt.strOptions | ||
|
||
import schema from './dist/schema/index.js' | ||
export const Schema = schema.default | ||
|
||
import map from './dist/schema/Map.js' | ||
export const YAMLMap = map.default | ||
|
||
import seq from './dist/schema/Seq.js' | ||
export const YAMLSeq = seq.default | ||
|
||
import pair from './dist/schema/Pair.js' | ||
export const Pair = pair.default | ||
|
||
import scalar from './dist/schema/Scalar.js' | ||
export const Scalar = scalar.default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import map from './dist/schema/Map.js' | ||
export const findPair = map.findPair | ||
|
||
import parseMapPkg from './dist/schema/parseMap.js' | ||
export const parseMap = parseMapPkg.default | ||
|
||
import parseSeqPkg from './dist/schema/parseSeq.js' | ||
export const parseSeq = parseSeqPkg.default | ||
|
||
import str from './dist/stringify.js' | ||
export const stringifyNumber = str.stringifyNumber | ||
export const stringifyString = str.stringifyString | ||
|
||
import toJsonPkg from './dist/toJSON.js' | ||
export const toJSON = toJsonPkg.default | ||
|
||
import constants from './dist/constants.js' | ||
export const Type = constants.Type | ||
|
||
import err from './dist/errors.js' | ||
export const YAMLReferenceError = err.YAMLReferenceError | ||
export const YAMLSemanticError = err.YAMLSemanticError | ||
export const YAMLSyntaxError = err.YAMLSyntaxError | ||
export const YAMLWarning = err.YAMLWarning |