Skip to content

Commit 9af13bb

Browse files
committed
fix: reexport MAML API
1 parent 32f9a00 commit 9af13bb

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

.size-limit.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"build/globals.js",
3434
"build/deno.js"
3535
],
36-
"limit": "831.05 kB",
36+
"limit": "831.105 kB",
3737
"brotli": false,
3838
"gzip": false
3939
},
4040
{
4141
"name": "libdefs",
4242
"path": "build/*.d.ts",
43-
"limit": "41.55 kB",
43+
"limit": "41.56 kB",
4444
"brotli": false,
4545
"gzip": false
4646
},
@@ -66,7 +66,7 @@
6666
"README.md",
6767
"LICENSE"
6868
],
69-
"limit": "889.60 kB",
69+
"limit": "889.66 kB",
7070
"brotli": false,
7171
"gzip": false
7272
}

build/index.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const {
1313
// src/index.ts
1414
var index_exports = {};
1515
__export(index_exports, {
16+
MAML: () => import_vendor2.MAML,
1617
VERSION: () => VERSION,
1718
YAML: () => import_vendor2.YAML,
1819
argv: () => argv,
@@ -264,6 +265,7 @@ function quiet(promise) {
264265
/* c8 ignore next 100 */
265266
// Annotate the CommonJS export names for ESM import in node:
266267
0 && (module.exports = {
268+
MAML,
267269
VERSION,
268270
YAML,
269271
argv,

build/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { type ProcessPromise } from './core.js';
55
export * from './core.js';
66
export * from './goods.js';
7-
export { minimist, dotenv, fs, YAML, glob, glob as globby } from './vendor.js';
7+
export { minimist, dotenv, fs, YAML, MAML, glob, glob as globby } from './vendor.js';
88
export declare const VERSION: string;
99
export declare const version: string;
1010
/**

build/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import "./deno.js"
33
import * as __module__ from "./index.cjs"
44
const {
5+
MAML,
56
VERSION,
67
YAML,
78
argv,
@@ -52,6 +53,7 @@ const {
5253
within
5354
} = globalThis.Deno ? globalThis.require("./index.cjs") : __module__
5455
export {
56+
MAML,
5557
VERSION,
5658
YAML,
5759
argv,

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ bus.lock()
1919

2020
export * from './core.ts'
2121
export * from './goods.ts'
22-
export { minimist, dotenv, fs, YAML, glob, glob as globby } from './vendor.ts'
22+
export {
23+
minimist,
24+
dotenv,
25+
fs,
26+
YAML,
27+
MAML,
28+
glob,
29+
glob as globby,
30+
} from './vendor.ts'
2331

2432
export const VERSION: string = versions.zx || '0.0.0'
2533
export const version: string = VERSION

test/export.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ describe('index', () => {
158158
assert.equal(typeof index.Fail.DOCS_URL, 'string', 'index.Fail.DOCS_URL')
159159
assert.equal(typeof index.Fail.ERRNO_CODES, 'object', 'index.Fail.ERRNO_CODES')
160160
assert.equal(typeof index.Fail.EXIT_CODES, 'object', 'index.Fail.EXIT_CODES')
161+
assert.equal(typeof index.MAML, 'object', 'index.MAML')
162+
assert.equal(typeof index.MAML.parse, 'function', 'index.MAML.parse')
163+
assert.equal(typeof index.MAML.stringify, 'function', 'index.MAML.stringify')
161164
assert.equal(typeof index.ProcessOutput, 'function', 'index.ProcessOutput')
162165
assert.equal(typeof index.ProcessOutput.getErrorDetails, 'function', 'index.ProcessOutput.getErrorDetails')
163166
assert.equal(typeof index.ProcessOutput.getErrorMessage, 'function', 'index.ProcessOutput.getErrorMessage')

0 commit comments

Comments
 (0)