@flex-development/mlly 1.0.0-alpha.17 → 1.0.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +829 -681
- package/README.md +173 -12
- package/dist/index.d.mts +3 -4
- package/dist/index.mjs +1 -5
- package/dist/interfaces/aliases.d.mts +11 -0
- package/dist/interfaces/context-get-source.d.mts +52 -0
- package/dist/interfaces/file-system.d.mts +57 -0
- package/dist/interfaces/index.d.mts +11 -21
- package/dist/interfaces/main-field-map.d.mts +13 -0
- package/dist/interfaces/module-format-map.d.mts +17 -0
- package/dist/interfaces/options-get-source.d.mts +22 -29
- package/dist/interfaces/options-resolve-alias.d.mts +14 -26
- package/dist/interfaces/options-resolve-module.d.mts +38 -27
- package/dist/interfaces/protocol-map.d.mts +35 -0
- package/dist/interfaces/stats.d.mts +28 -0
- package/dist/internal/chars.mjs +11 -0
- package/dist/internal/check-invalid-segments.mjs +19 -0
- package/dist/internal/fs.browser.mjs +36 -0
- package/dist/internal/fs.d.mts +7 -0
- package/dist/internal/invalid-package-target.mjs +18 -0
- package/dist/internal/invalid-subpath.mjs +16 -0
- package/dist/internal/process.browser.mjs +7 -0
- package/dist/internal/process.d.mts +4 -0
- package/dist/lib/can-parse-url.d.mts +21 -0
- package/dist/lib/can-parse-url.mjs +12 -0
- package/dist/lib/cwd.d.mts +12 -0
- package/dist/lib/cwd.mjs +8 -0
- package/dist/lib/default-conditions.d.mts +15 -0
- package/dist/lib/default-conditions.mjs +5 -0
- package/dist/lib/default-extensions.d.mts +14 -0
- package/dist/lib/default-extensions.mjs +21 -0
- package/dist/lib/default-main-fields.d.mts +14 -0
- package/dist/lib/default-main-fields.mjs +5 -0
- package/dist/lib/extension-format-map.d.mts +16 -0
- package/dist/lib/extension-format-map.mjs +21 -0
- package/dist/lib/formats.d.mts +21 -0
- package/dist/lib/formats.mjs +14 -0
- package/dist/lib/get-source.d.mts +26 -0
- package/dist/lib/get-source.mjs +70 -0
- package/dist/lib/index.d.mts +40 -0
- package/dist/lib/index.mjs +53 -0
- package/dist/lib/is-absolute-specifier.d.mts +23 -0
- package/dist/lib/is-absolute-specifier.mjs +9 -0
- package/dist/lib/is-array-index.d.mts +17 -0
- package/dist/lib/is-array-index.mjs +11 -0
- package/dist/lib/is-bare-specifier.d.mts +23 -0
- package/dist/lib/is-bare-specifier.mjs +11 -0
- package/dist/lib/is-directory.d.mts +22 -0
- package/dist/lib/is-directory.mjs +13 -0
- package/dist/lib/is-file.d.mts +22 -0
- package/dist/lib/is-file.mjs +13 -0
- package/dist/lib/is-imports-subpath.d.mts +19 -0
- package/dist/lib/is-imports-subpath.mjs +8 -0
- package/dist/lib/is-relative-specifier.d.mts +21 -0
- package/dist/lib/is-relative-specifier.mjs +16 -0
- package/dist/lib/lookup-package-scope.d.mts +26 -0
- package/dist/lib/lookup-package-scope.mjs +16 -0
- package/dist/lib/pattern-key-compare.d.mts +31 -0
- package/dist/lib/pattern-key-compare.mjs +18 -0
- package/dist/lib/pattern-match.d.mts +19 -0
- package/dist/lib/pattern-match.mjs +36 -0
- package/dist/lib/read-package-json.d.mts +35 -0
- package/dist/lib/read-package-json.mjs +29 -0
- package/dist/lib/resolve-alias.d.mts +19 -0
- package/dist/lib/resolve-alias.mjs +50 -0
- package/dist/lib/resolve-module.d.mts +37 -0
- package/dist/lib/resolve-module.mjs +75 -0
- package/dist/lib/resolver.d.mts +280 -0
- package/dist/lib/resolver.mjs +462 -0
- package/dist/lib/root.d.mts +11 -0
- package/dist/lib/root.mjs +6 -0
- package/dist/lib/to-relative-specifier.d.mts +25 -0
- package/dist/lib/to-relative-specifier.mjs +26 -0
- package/dist/lib/to-url.d.mts +24 -0
- package/dist/lib/to-url.mjs +10 -0
- package/dist/types/awaitable.d.mts +14 -0
- package/dist/types/change-ext-fn.d.mts +29 -0
- package/dist/types/get-source-handler.d.mts +21 -0
- package/dist/types/get-source-handlers.d.mts +14 -0
- package/dist/types/index.d.mts +12 -10
- package/dist/types/main-field.d.mts +13 -0
- package/dist/types/module-format.d.mts +13 -0
- package/dist/types/module-id.d.mts +2 -4
- package/dist/types/numeric.d.mts +9 -0
- package/dist/types/pattern-key-compare-result.d.mts +9 -0
- package/dist/types/pattern-match.d.mts +10 -0
- package/dist/types/protocol.d.mts +6 -7
- package/package.json +227 -155
- package/dist/enums/assert-type.d.mts +0 -21
- package/dist/enums/assert-type.mjs +0 -4
- package/dist/enums/format.d.mts +0 -17
- package/dist/enums/format.mjs +0 -4
- package/dist/enums/index.d.mts +0 -10
- package/dist/enums/index.mjs +0 -14
- package/dist/enums/kind-specifier-syntax.d.mts +0 -14
- package/dist/enums/kind-specifier-syntax.mjs +0 -4
- package/dist/enums/kind-specifier.d.mts +0 -17
- package/dist/enums/kind-specifier.mjs +0 -4
- package/dist/enums/kind-statement-syntax.d.mts +0 -22
- package/dist/enums/kind-statement-syntax.mjs +0 -4
- package/dist/enums/kind-statement.d.mts +0 -15
- package/dist/enums/kind-statement.mjs +0 -4
- package/dist/index.mjs.map +0 -8
- package/dist/interfaces/import-assertions.d.mts +0 -20
- package/dist/interfaces/import-dynamic.d.mts +0 -41
- package/dist/interfaces/import-static.d.mts +0 -35
- package/dist/interfaces/index.mjs +0 -0
- package/dist/interfaces/options-fill-module.d.mts +0 -23
- package/dist/interfaces/options-find-subpath.d.mts +0 -50
- package/dist/interfaces/options-get-format.d.mts +0 -73
- package/dist/interfaces/options-parse-module-id.d.mts +0 -34
- package/dist/interfaces/options-parse-subpath.d.mts +0 -50
- package/dist/interfaces/options-resolve.d.mts +0 -15
- package/dist/interfaces/package-scope.d.mts +0 -25
- package/dist/interfaces/parsed-data-url.d.mts +0 -56
- package/dist/interfaces/parsed-module-id.d.mts +0 -80
- package/dist/interfaces/parsed-subpath.d.mts +0 -44
- package/dist/interfaces/statement-export.d.mts +0 -44
- package/dist/interfaces/statement-import.d.mts +0 -38
- package/dist/interfaces/statement-require.d.mts +0 -38
- package/dist/interfaces/statement.d.mts +0 -49
- package/dist/internal/dequote.d.mts +0 -14
- package/dist/internal/dequote.mjs +0 -7
- package/dist/internal/dequote.mjs.map +0 -8
- package/dist/internal/format-type-map.d.mts +0 -19
- package/dist/internal/format-type-map.mjs +0 -13
- package/dist/internal/format-type-map.mjs.map +0 -8
- package/dist/internal/get-specifier-kind.d.mts +0 -19
- package/dist/internal/get-specifier-kind.mjs +0 -11
- package/dist/internal/get-specifier-kind.mjs.map +0 -8
- package/dist/internal/get-subpaths.d.mts +0 -28
- package/dist/internal/get-subpaths.mjs +0 -8
- package/dist/internal/get-subpaths.mjs.map +0 -8
- package/dist/internal/regex-encoded-sep.d.mts +0 -15
- package/dist/internal/regex-encoded-sep.mjs +0 -6
- package/dist/internal/regex-encoded-sep.mjs.map +0 -8
- package/dist/internal/regex-internal-specifier.d.mts +0 -16
- package/dist/internal/regex-internal-specifier.mjs +0 -6
- package/dist/internal/regex-internal-specifier.mjs.map +0 -8
- package/dist/internal/regex-invalid-segment.d.mts +0 -16
- package/dist/internal/regex-invalid-segment.mjs +0 -9
- package/dist/internal/regex-invalid-segment.mjs.map +0 -8
- package/dist/internal/regex-package-name.d.mts +0 -15
- package/dist/internal/regex-package-name.mjs +0 -6
- package/dist/internal/regex-package-name.mjs.map +0 -8
- package/dist/internal/regex-package-path.d.mts +0 -17
- package/dist/internal/regex-package-path.mjs +0 -6
- package/dist/internal/regex-package-path.mjs.map +0 -8
- package/dist/internal/resolver.d.mts +0 -132
- package/dist/internal/resolver.mjs +0 -483
- package/dist/internal/resolver.mjs.map +0 -8
- package/dist/internal/validate-array-set.d.mts +0 -24
- package/dist/internal/validate-array-set.mjs +0 -12
- package/dist/internal/validate-array-set.mjs.map +0 -8
- package/dist/internal/validate-boolean.d.mts +0 -22
- package/dist/internal/validate-boolean.mjs +0 -12
- package/dist/internal/validate-boolean.mjs.map +0 -8
- package/dist/internal/validate-map.d.mts +0 -26
- package/dist/internal/validate-map.mjs +0 -12
- package/dist/internal/validate-map.mjs.map +0 -8
- package/dist/internal/validate-object.d.mts +0 -23
- package/dist/internal/validate-object.mjs +0 -12
- package/dist/internal/validate-object.mjs.map +0 -8
- package/dist/internal/validate-set.d.mts +0 -24
- package/dist/internal/validate-set.mjs +0 -12
- package/dist/internal/validate-set.mjs.map +0 -8
- package/dist/internal/validate-string.d.mts +0 -23
- package/dist/internal/validate-string.mjs +0 -12
- package/dist/internal/validate-string.mjs.map +0 -8
- package/dist/internal/validate-url-string.d.mts +0 -24
- package/dist/internal/validate-url-string.mjs +0 -13
- package/dist/internal/validate-url-string.mjs.map +0 -8
- package/dist/types/declaration.d.mts +0 -9
- package/dist/types/fn-change-ext.d.mts +0 -31
- package/dist/types/index.mjs +0 -0
- package/dist/types/mime-type.d.mts +0 -13
- package/dist/types/module-specifier-type.d.mts +0 -11
- package/dist/types/syntax-kind-export.d.mts +0 -12
- package/dist/types/syntax-kind-import.d.mts +0 -12
- package/dist/types/syntax-kind-require.d.mts +0 -12
- package/dist/utils/compare-subpaths.d.mts +0 -25
- package/dist/utils/compare-subpaths.mjs +0 -19
- package/dist/utils/compare-subpaths.mjs.map +0 -8
- package/dist/utils/conditions.d.mts +0 -13
- package/dist/utils/conditions.mjs +0 -6
- package/dist/utils/conditions.mjs.map +0 -8
- package/dist/utils/detect-syntax.d.mts +0 -21
- package/dist/utils/detect-syntax.mjs +0 -11
- package/dist/utils/detect-syntax.mjs.map +0 -8
- package/dist/utils/extension-format-map.d.mts +0 -16
- package/dist/utils/extension-format-map.mjs +0 -22
- package/dist/utils/extension-format-map.mjs.map +0 -8
- package/dist/utils/extract-statements.d.mts +0 -21
- package/dist/utils/extract-statements.mjs +0 -20
- package/dist/utils/extract-statements.mjs.map +0 -8
- package/dist/utils/fill-modules.d.mts +0 -24
- package/dist/utils/fill-modules.mjs +0 -67
- package/dist/utils/fill-modules.mjs.map +0 -8
- package/dist/utils/find-dynamic-imports.d.mts +0 -18
- package/dist/utils/find-dynamic-imports.mjs +0 -36
- package/dist/utils/find-dynamic-imports.mjs.map +0 -8
- package/dist/utils/find-exports.d.mts +0 -21
- package/dist/utils/find-exports.mjs +0 -92
- package/dist/utils/find-exports.mjs.map +0 -8
- package/dist/utils/find-requires.d.mts +0 -18
- package/dist/utils/find-requires.mjs +0 -32
- package/dist/utils/find-requires.mjs.map +0 -8
- package/dist/utils/find-static-imports.d.mts +0 -18
- package/dist/utils/find-static-imports.mjs +0 -30
- package/dist/utils/find-static-imports.mjs.map +0 -8
- package/dist/utils/find-subpath.d.mts +0 -31
- package/dist/utils/find-subpath.mjs +0 -86
- package/dist/utils/find-subpath.mjs.map +0 -8
- package/dist/utils/get-format.d.mts +0 -31
- package/dist/utils/get-format.mjs +0 -107
- package/dist/utils/get-format.mjs.map +0 -8
- package/dist/utils/get-source.d.mts +0 -30
- package/dist/utils/get-source.mjs +0 -61
- package/dist/utils/get-source.mjs.map +0 -8
- package/dist/utils/has-cjs-syntax.d.mts +0 -25
- package/dist/utils/has-cjs-syntax.mjs +0 -11
- package/dist/utils/has-cjs-syntax.mjs.map +0 -8
- package/dist/utils/has-esm-syntax.d.mts +0 -21
- package/dist/utils/has-esm-syntax.mjs +0 -11
- package/dist/utils/has-esm-syntax.mjs.map +0 -8
- package/dist/utils/index.d.mts +0 -44
- package/dist/utils/index.mjs +0 -83
- package/dist/utils/index.mjs.map +0 -8
- package/dist/utils/is-absolute-specifier.d.mts +0 -20
- package/dist/utils/is-absolute-specifier.mjs +0 -26
- package/dist/utils/is-absolute-specifier.mjs.map +0 -8
- package/dist/utils/is-bare-specifier.d.mts +0 -20
- package/dist/utils/is-bare-specifier.mjs +0 -10
- package/dist/utils/is-bare-specifier.mjs.map +0 -8
- package/dist/utils/is-directory.d.mts +0 -13
- package/dist/utils/is-directory.mjs +0 -14
- package/dist/utils/is-directory.mjs.map +0 -8
- package/dist/utils/is-exports-sugar.d.mts +0 -26
- package/dist/utils/is-exports-sugar.mjs +0 -29
- package/dist/utils/is-exports-sugar.mjs.map +0 -8
- package/dist/utils/is-file.d.mts +0 -13
- package/dist/utils/is-file.mjs +0 -14
- package/dist/utils/is-file.mjs.map +0 -8
- package/dist/utils/is-relative-specifier.d.mts +0 -19
- package/dist/utils/is-relative-specifier.mjs +0 -9
- package/dist/utils/is-relative-specifier.mjs.map +0 -8
- package/dist/utils/lookup-package-scope.d.mts +0 -26
- package/dist/utils/lookup-package-scope.mjs +0 -34
- package/dist/utils/lookup-package-scope.mjs.map +0 -8
- package/dist/utils/parse-data-url.d.mts +0 -25
- package/dist/utils/parse-data-url.mjs +0 -25
- package/dist/utils/parse-data-url.mjs.map +0 -8
- package/dist/utils/parse-module-id.d.mts +0 -20
- package/dist/utils/parse-module-id.mjs +0 -123
- package/dist/utils/parse-module-id.mjs.map +0 -8
- package/dist/utils/parse-subpath.d.mts +0 -35
- package/dist/utils/parse-subpath.mjs +0 -149
- package/dist/utils/parse-subpath.mjs.map +0 -8
- package/dist/utils/pattern-character.d.mts +0 -11
- package/dist/utils/pattern-character.mjs +0 -6
- package/dist/utils/pattern-character.mjs.map +0 -8
- package/dist/utils/read-package-json.d.mts +0 -26
- package/dist/utils/read-package-json.mjs +0 -48
- package/dist/utils/read-package-json.mjs.map +0 -8
- package/dist/utils/resolve-alias.d.mts +0 -20
- package/dist/utils/resolve-alias.mjs +0 -101
- package/dist/utils/resolve-alias.mjs.map +0 -8
- package/dist/utils/resolve-aliases.d.mts +0 -19
- package/dist/utils/resolve-aliases.mjs +0 -26
- package/dist/utils/resolve-aliases.mjs.map +0 -8
- package/dist/utils/resolve-extensions.d.mts +0 -14
- package/dist/utils/resolve-extensions.mjs +0 -22
- package/dist/utils/resolve-extensions.mjs.map +0 -8
- package/dist/utils/resolve-module.d.mts +0 -39
- package/dist/utils/resolve-module.mjs +0 -63
- package/dist/utils/resolve-module.mjs.map +0 -8
- package/dist/utils/resolve-modules.d.mts +0 -25
- package/dist/utils/resolve-modules.mjs +0 -23
- package/dist/utils/resolve-modules.mjs.map +0 -8
- package/dist/utils/to-absolute-specifier.d.mts +0 -22
- package/dist/utils/to-absolute-specifier.mjs +0 -8
- package/dist/utils/to-absolute-specifier.mjs.map +0 -8
- package/dist/utils/to-bare-specifier.d.mts +0 -42
- package/dist/utils/to-bare-specifier.mjs +0 -72
- package/dist/utils/to-bare-specifier.mjs.map +0 -8
- package/dist/utils/to-data-url.d.mts +0 -30
- package/dist/utils/to-data-url.mjs +0 -7
- package/dist/utils/to-data-url.mjs.map +0 -8
- package/dist/utils/to-node-url.d.mts +0 -19
- package/dist/utils/to-node-url.mjs +0 -7
- package/dist/utils/to-node-url.mjs.map +0 -8
- package/dist/utils/to-relative-specifier.d.mts +0 -24
- package/dist/utils/to-relative-specifier.mjs +0 -10
- package/dist/utils/to-relative-specifier.mjs.map +0 -8
- package/dist/utils/to-url.d.mts +0 -21
- package/dist/utils/to-url.mjs +0 -8
- package/dist/utils/to-url.mjs.map +0 -8
- package/dist/utils/validate-assertions.d.mts +0 -23
- package/dist/utils/validate-assertions.mjs +0 -47
- package/dist/utils/validate-assertions.mjs.map +0 -8
- package/dist/utils/validate-exports.d.mts +0 -25
- package/dist/utils/validate-exports.mjs +0 -73
- package/dist/utils/validate-exports.mjs.map +0 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Type Aliases - ModuleFormat
|
|
3
|
+
* @module mlly/types/ModuleFormat
|
|
4
|
+
*/
|
|
5
|
+
import type { ModuleFormatMap } from '@flex-development/mlly';
|
|
6
|
+
/**
|
|
7
|
+
* Union of values that can occur where a module format is expected.
|
|
8
|
+
*
|
|
9
|
+
* To register new formats, augment {@linkcode ModuleFormatMap}. They will be
|
|
10
|
+
* added to this union automatically.
|
|
11
|
+
*/
|
|
12
|
+
type ModuleFormat = ModuleFormatMap[keyof ModuleFormatMap];
|
|
13
|
+
export type { ModuleFormat as default };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Type
|
|
2
|
+
* @file Type Aliases - ModuleId
|
|
3
3
|
* @module mlly/types/ModuleId
|
|
4
4
|
*/
|
|
5
|
-
/// <reference types="node" />
|
|
6
|
-
import type { URL } from 'node:url';
|
|
7
5
|
/**
|
|
8
|
-
* ECMAScript (ES) module
|
|
6
|
+
* Union of ECMAScript (ES) module identifiers.
|
|
9
7
|
*
|
|
10
8
|
* @see {@linkcode URL}
|
|
11
9
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Type Aliases - PatternKeyCompareResult
|
|
3
|
+
* @module mlly/types/PatternKeyCompareResult
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Union of `PATTERN_KEY_COMPARE` algorithm results.
|
|
7
|
+
*/
|
|
8
|
+
type PatternKeyCompareResult = -1 | 0 | 1;
|
|
9
|
+
export type { PatternKeyCompareResult as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Type Aliases - PatternMatch
|
|
3
|
+
* @module mlly/types/PatternMatch
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* List, where the first item is the key of a package `exports` or `imports`
|
|
7
|
+
* target object, and the last is a subpath pattern match.
|
|
8
|
+
*/
|
|
9
|
+
type PatternMatch = [expansionKey: string, patternMatch: string | null];
|
|
10
|
+
export type { PatternMatch as default };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file Type
|
|
2
|
+
* @file Type Aliases - Protocol
|
|
3
3
|
* @module mlly/types/Protocol
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
5
|
+
import type { ProtocolMap } from '@flex-development/mlly';
|
|
6
6
|
/**
|
|
7
|
-
* URL
|
|
7
|
+
* Union of values that can occur where a URL protocol is expected.
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
10
|
-
*
|
|
11
|
-
* @see https://url.spec.whatwg.org/#special-scheme
|
|
9
|
+
* To register new protocols, augment {@linkcode ProtocolMap}. They will be
|
|
10
|
+
* added to this union automatically.
|
|
12
11
|
*/
|
|
13
|
-
type Protocol =
|
|
12
|
+
type Protocol = ProtocolMap[keyof ProtocolMap];
|
|
14
13
|
export type { Protocol as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flex-development/mlly",
|
|
3
3
|
"description": "ECMAScript module utilities",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.19",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ecmascript",
|
|
7
7
|
"esm",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"typescript"
|
|
11
11
|
],
|
|
12
12
|
"license": "BSD-3-Clause",
|
|
13
|
-
"homepage": "https://mlly
|
|
13
|
+
"homepage": "https://github.com/flex-development/mlly",
|
|
14
14
|
"repository": "https://github.com/flex-development/mlly.git",
|
|
15
15
|
"bugs": "https://github.com/flex-development/mlly/issues",
|
|
16
16
|
"author": {
|
|
@@ -19,202 +19,274 @@
|
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public",
|
|
22
|
-
"
|
|
22
|
+
"diff-dst-prefix": "mlly",
|
|
23
|
+
"diff-src-prefix": "mlly",
|
|
24
|
+
"directory": "./",
|
|
25
|
+
"executableFiles": [],
|
|
26
|
+
"node-options": null,
|
|
27
|
+
"pack-destination": ".",
|
|
28
|
+
"parseable": true,
|
|
29
|
+
"prefer-dedupe": true,
|
|
30
|
+
"provenance": true,
|
|
31
|
+
"tag-version-prefix": ""
|
|
23
32
|
},
|
|
24
33
|
"type": "module",
|
|
25
34
|
"files": [
|
|
26
35
|
"CHANGELOG.md",
|
|
36
|
+
"LICENSE.md",
|
|
37
|
+
"README.md",
|
|
27
38
|
"dist"
|
|
28
39
|
],
|
|
29
40
|
"exports": {
|
|
30
|
-
".":
|
|
41
|
+
".": {
|
|
42
|
+
"mlly": "./src/index.mts",
|
|
43
|
+
"default": "./dist/index.mjs"
|
|
44
|
+
},
|
|
31
45
|
"./package.json": "./package.json"
|
|
32
46
|
},
|
|
47
|
+
"imports": {
|
|
48
|
+
"#build/*": "./build/*.mts",
|
|
49
|
+
"#fixtures/tsconfig*.json": {
|
|
50
|
+
"types": "./__fixtures__/tsconfig.json.d.mts",
|
|
51
|
+
"default": "./__fixtures__/tsconfig*.json"
|
|
52
|
+
},
|
|
53
|
+
"#fixtures/*": "./__fixtures__/*.mts",
|
|
54
|
+
"#interfaces/*": {
|
|
55
|
+
"mlly": "./src/interfaces/*.mts",
|
|
56
|
+
"default": "./dist/interfaces/*.d.mts"
|
|
57
|
+
},
|
|
58
|
+
"#internal/fs": {
|
|
59
|
+
"types": {
|
|
60
|
+
"mlly": "./src/internal/fs.d.mts",
|
|
61
|
+
"default": "./dist/internal/fs.d.mts"
|
|
62
|
+
},
|
|
63
|
+
"browser": {
|
|
64
|
+
"mlly": "./src/internal/fs.browser.mts",
|
|
65
|
+
"default": "./dist/internal/fs.browser.mjs"
|
|
66
|
+
},
|
|
67
|
+
"node": "fs/promises",
|
|
68
|
+
"default": "fs/promises"
|
|
69
|
+
},
|
|
70
|
+
"#internal/process": {
|
|
71
|
+
"types": {
|
|
72
|
+
"mlly": "./src/internal/process.d.mts",
|
|
73
|
+
"default": "./dist/internal/process.d.mts"
|
|
74
|
+
},
|
|
75
|
+
"browser": {
|
|
76
|
+
"mlly": "./src/internal/process.browser.mts",
|
|
77
|
+
"default": "./dist/internal/process.browser.mjs"
|
|
78
|
+
},
|
|
79
|
+
"node": "process",
|
|
80
|
+
"default": "process"
|
|
81
|
+
},
|
|
82
|
+
"#internal/*": {
|
|
83
|
+
"mlly": "./src/internal/*.mts",
|
|
84
|
+
"default": "./dist/internal/*.mjs"
|
|
85
|
+
},
|
|
86
|
+
"#lib/*": {
|
|
87
|
+
"mlly": "./src/lib/*.mts",
|
|
88
|
+
"default": "./dist/lib/*.mjs"
|
|
89
|
+
},
|
|
90
|
+
"#tests/*": "./__tests__/*.mts",
|
|
91
|
+
"#types/*": {
|
|
92
|
+
"mlly": "./src/types/*.mts",
|
|
93
|
+
"default": "./dist/types/*.d.mts"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
33
96
|
"module": "./dist/index.mjs",
|
|
34
97
|
"types": "./dist/index.d.mts",
|
|
35
98
|
"scripts": {
|
|
36
|
-
"build": "
|
|
37
|
-
"
|
|
38
|
-
"check:
|
|
39
|
-
"check:format": "prettier --check .",
|
|
99
|
+
"build": "yarn clean:build; node --conditions development --conditions mlly/build --conditions mlly --experimental-strip-types --experimental-transform-types ./build/build.mts",
|
|
100
|
+
"check:ci": "yarn dedupe --check && yarn check:format && yarn check:lint && yarn check:spelling && yarn typecheck && yarn test:cov && yarn pack && yarn check:types:build && attw package.tgz && yarn clean:pack",
|
|
101
|
+
"check:format": "dprint check --incremental=false",
|
|
40
102
|
"check:lint": "eslint --exit-on-fatal-error --max-warnings 0 .",
|
|
41
103
|
"check:spelling": "cspell lint --color --no-progress --relative $@ \"**\"",
|
|
42
|
-
"check:types": "
|
|
43
|
-
"check:types:attw": "yarn pack && attw package.tgz
|
|
44
|
-
"check:types:build": "
|
|
104
|
+
"check:types": "tsc -p tsconfig.typecheck.json",
|
|
105
|
+
"check:types:attw": "yarn pack && attw package.tgz; yarn clean:pack",
|
|
106
|
+
"check:types:build": "tsc -p tsconfig.build.json",
|
|
45
107
|
"check:upgrades": "yarn upgrade-interactive",
|
|
46
|
-
"clean:build": "trash ./{dist,*.tgz}",
|
|
47
|
-
"clean:coverage": "trash ./coverage",
|
|
108
|
+
"clean:build": "trash \"./{dist,*.tgz}\"",
|
|
48
109
|
"clean:modules": "trash ./.yarn/{cache,*.gz} ./node_modules",
|
|
49
|
-
"clean:pack": "trash ./*.tgz",
|
|
50
|
-
"clean:test": "
|
|
110
|
+
"clean:pack": "trash \"./*.tgz\"",
|
|
111
|
+
"clean:test": "trash ./coverage && trash __tests__/reports",
|
|
51
112
|
"codecov": "yarn test:cov && yarn test:cov:upload",
|
|
52
113
|
"codecov:validate": "cat .codecov.yml | curl --data-binary @- https://codecov.io/validate",
|
|
53
|
-
"commitlint": "
|
|
54
|
-
"docs:build": "vc pull --environment=preview && vc build",
|
|
55
|
-
"docs:build:prod": "vc pull --environment=production && vc build --prod",
|
|
56
|
-
"docs:deploy": "yarn docs:build && vc deploy --prebuilt",
|
|
57
|
-
"docs:deploy:prod": "yarn docs:build:prod && vc deploy --prebuilt --prod",
|
|
58
|
-
"docs:dev": "vc env pull ./docs/.vitepress/.env && vitepress dev docs",
|
|
59
|
-
"docs:serve": "vitepress serve docs --port 8080",
|
|
114
|
+
"commitlint": "commitlint -V",
|
|
60
115
|
"fix:cg": "yarn fix:format && yarn fix:lint",
|
|
61
116
|
"fix:dedupe": "yarn dedupe --strategy=highest",
|
|
62
|
-
"fix:format": "
|
|
117
|
+
"fix:format": "dprint fmt",
|
|
63
118
|
"fix:lint": "yarn check:lint --cache --fix",
|
|
64
|
-
"
|
|
65
|
-
"_postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky install || exit 0",
|
|
119
|
+
"_postinstall": "[ -f ./node_modules/.bin/husky ] && chmod +x .husky/* && husky || exit 0",
|
|
66
120
|
"postpack": "toggle-scripts +postinstall",
|
|
67
121
|
"postpublish": "toggle-scripts +prepack",
|
|
68
122
|
"prepack": "toggle-scripts -postinstall && yarn build",
|
|
69
123
|
"prepublishOnly": "toggle-scripts -prepack",
|
|
70
|
-
"recommended-bump": "conventional-recommended-bump --preset=conventionalcommits --tag-prefix=$(jq .tagPrefix package.json -r) --verbose",
|
|
71
124
|
"release": "bash ./scripts/release.sh",
|
|
72
|
-
"
|
|
73
|
-
"test
|
|
74
|
-
"test:cov
|
|
125
|
+
"remark": "remark .",
|
|
126
|
+
"test": "yarn clean:build; cross-env NODE_OPTIONS=\"--conditions mlly --experimental-strip-types --experimental-transform-types\" vitest run",
|
|
127
|
+
"test:cov": "yarn test --coverage",
|
|
128
|
+
"test:cov:reports": "yarn test:cov --merge-reports --mode=reports",
|
|
129
|
+
"test:cov:ui": "yarn test:ui --coverage",
|
|
75
130
|
"test:cov:upload": "./codecov -t $CODECOV_TOKEN -f ./coverage/lcov.info",
|
|
76
|
-
"test:
|
|
77
|
-
"
|
|
78
|
-
"typecheck
|
|
131
|
+
"test:reports": "yarn test --merge-reports --mode=reports",
|
|
132
|
+
"test:ui": "cross-env VITEST_UI=1 NODE_OPTIONS=\"--conditions mlly --experimental-strip-types --experimental-transform-types\" vitest --ui",
|
|
133
|
+
"typecheck": "yarn test --typecheck --mode=typecheck",
|
|
134
|
+
"typecheck:ui": "yarn test:ui --typecheck --mode=typecheck"
|
|
79
135
|
},
|
|
80
136
|
"dependencies": {
|
|
81
|
-
"@flex-development/errnode": "
|
|
82
|
-
"@flex-development/
|
|
83
|
-
"@flex-development/
|
|
84
|
-
"@flex-development/
|
|
85
|
-
"
|
|
86
|
-
"@flex-development/pkg-types": "3.0.0",
|
|
87
|
-
"@flex-development/tutils": "6.0.0-alpha.18"
|
|
137
|
+
"@flex-development/errnode": "3.1.1",
|
|
138
|
+
"@flex-development/is-builtin": "3.2.0",
|
|
139
|
+
"@flex-development/pathe": "4.0.0",
|
|
140
|
+
"@flex-development/pkg-types": "4.1.0",
|
|
141
|
+
"devlop": "1.1.0"
|
|
88
142
|
},
|
|
89
143
|
"devDependencies": {
|
|
90
|
-
"@arethetypeswrong/cli": "0.
|
|
91
|
-
"@commitlint/cli": "
|
|
92
|
-
"@commitlint/types": "
|
|
93
|
-
"@
|
|
94
|
-
"@faker-js/faker": "
|
|
144
|
+
"@arethetypeswrong/cli": "0.17.2",
|
|
145
|
+
"@commitlint/cli": "19.6.1",
|
|
146
|
+
"@commitlint/types": "19.5.0",
|
|
147
|
+
"@eslint/js": "9.17.0",
|
|
148
|
+
"@faker-js/faker": "9.3.0",
|
|
95
149
|
"@flex-development/commitlint-config": "1.0.1",
|
|
96
|
-
"@flex-development/
|
|
97
|
-
"@flex-development/
|
|
98
|
-
"@flex-development/
|
|
99
|
-
"@flex-development/
|
|
100
|
-
"@flex-development/mkbuild": "1.0.0-alpha.
|
|
101
|
-
"@
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@types/
|
|
106
|
-
"@types/
|
|
107
|
-
"@types/
|
|
108
|
-
"@types/
|
|
109
|
-
"@types/
|
|
110
|
-
"@types/
|
|
111
|
-
"@types/
|
|
112
|
-
"@types/
|
|
113
|
-
"@
|
|
114
|
-
"@
|
|
115
|
-
"@types/node-notifier": "8.0.2",
|
|
116
|
-
"@types/prettier": "3.0.0",
|
|
117
|
-
"@types/semver": "7.5.0",
|
|
118
|
-
"@types/unist": "3.0.0",
|
|
119
|
-
"@typescript-eslint/eslint-plugin": "6.3.0",
|
|
120
|
-
"@typescript-eslint/parser": "6.3.0",
|
|
150
|
+
"@flex-development/export-regex": "2.0.0",
|
|
151
|
+
"@flex-development/ext-regex": "2.0.0",
|
|
152
|
+
"@flex-development/grease": "3.0.0-alpha.9",
|
|
153
|
+
"@flex-development/import-regex": "3.0.0",
|
|
154
|
+
"@flex-development/mkbuild": "1.0.0-alpha.23",
|
|
155
|
+
"@flex-development/tsconfig-utils": "2.0.2",
|
|
156
|
+
"@flex-development/tutils": "6.0.0-alpha.25",
|
|
157
|
+
"@stylistic/eslint-plugin": "2.11.0",
|
|
158
|
+
"@tsconfig/strictest": "2.0.5",
|
|
159
|
+
"@types/chai": "5.0.0",
|
|
160
|
+
"@types/chai-string": "1.4.5",
|
|
161
|
+
"@types/eslint": "9.6.1",
|
|
162
|
+
"@types/eslint__js": "8.42.3",
|
|
163
|
+
"@types/is-ci": "3.0.4",
|
|
164
|
+
"@types/node": "22.8.6",
|
|
165
|
+
"@types/node-notifier": "8.0.5",
|
|
166
|
+
"@types/rollup": "0.54.0",
|
|
167
|
+
"@typescript-eslint/eslint-plugin": "8.18.1",
|
|
168
|
+
"@typescript-eslint/parser": "8.18.1",
|
|
121
169
|
"@vates/toggle-scripts": "1.0.0",
|
|
122
|
-
"@vitest/coverage-v8": "0.
|
|
123
|
-
"@
|
|
124
|
-
"
|
|
125
|
-
"algoliasearch": "4.19.1",
|
|
126
|
-
"chai": "5.0.0-alpha.1",
|
|
170
|
+
"@vitest/coverage-v8": "3.0.0-beta.3",
|
|
171
|
+
"@vitest/ui": "3.0.0-beta.3",
|
|
172
|
+
"chai": "5.1.2",
|
|
127
173
|
"chai-each": "0.0.1",
|
|
128
|
-
"chai-quantifiers": "1.0.17",
|
|
129
174
|
"chai-string": "1.5.0",
|
|
130
|
-
"
|
|
131
|
-
"conventional-changelog": "4.0.0",
|
|
132
|
-
"conventional-changelog-conventionalcommits": "6.1.0",
|
|
133
|
-
"conventional-changelog-core": "5.0.2",
|
|
134
|
-
"conventional-changelog-writer": "6.0.1",
|
|
135
|
-
"conventional-recommended-bump": "7.0.1",
|
|
175
|
+
"consola": "3.2.3",
|
|
136
176
|
"cross-env": "7.0.3",
|
|
137
|
-
"cspell": "
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"esbuild": "0.
|
|
141
|
-
"eslint": "
|
|
142
|
-
"eslint-
|
|
143
|
-
"eslint-
|
|
144
|
-
"eslint-plugin-chai-expect": "3.
|
|
145
|
-
"eslint-plugin-import": "2.
|
|
177
|
+
"cspell": "8.17.1",
|
|
178
|
+
"dprint": "0.47.6",
|
|
179
|
+
"editorconfig": "2.0.0",
|
|
180
|
+
"esbuild": "0.24.2",
|
|
181
|
+
"eslint": "9.17.0",
|
|
182
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
183
|
+
"eslint-mdx": "3.1.5",
|
|
184
|
+
"eslint-plugin-chai-expect": "3.1.0",
|
|
185
|
+
"eslint-plugin-import": "2.31.0",
|
|
146
186
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
147
|
-
"eslint-plugin-jsdoc": "
|
|
148
|
-
"eslint-plugin-jsonc": "2.
|
|
149
|
-
"eslint-plugin-
|
|
150
|
-
"eslint-plugin-
|
|
151
|
-
"eslint-plugin-
|
|
152
|
-
"eslint-plugin-
|
|
153
|
-
"eslint-plugin-
|
|
154
|
-
"
|
|
155
|
-
"eslint-plugin-vue": "9.16.1",
|
|
156
|
-
"eslint-plugin-yml": "1.8.0",
|
|
157
|
-
"globby": "13.2.2",
|
|
158
|
-
"graphql": "16.7.1",
|
|
159
|
-
"graphql-config": "5.0.2",
|
|
160
|
-
"gray-matter": "4.0.3",
|
|
187
|
+
"eslint-plugin-jsdoc": "50.6.1",
|
|
188
|
+
"eslint-plugin-jsonc": "2.18.2",
|
|
189
|
+
"eslint-plugin-mdx": "3.1.5",
|
|
190
|
+
"eslint-plugin-n": "17.15.1",
|
|
191
|
+
"eslint-plugin-promise": "7.2.1",
|
|
192
|
+
"eslint-plugin-unicorn": "56.0.1",
|
|
193
|
+
"eslint-plugin-yml": "1.16.0",
|
|
194
|
+
"globals": "15.14.0",
|
|
161
195
|
"growl": "1.10.5",
|
|
162
|
-
"husky": "
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"mri": "1.2.0",
|
|
167
|
-
"node-fetch": "3.3.2",
|
|
196
|
+
"husky": "9.1.7",
|
|
197
|
+
"import-meta-resolve": "4.1.0",
|
|
198
|
+
"is-ci": "4.1.0",
|
|
199
|
+
"jsonc-eslint-parser": "2.4.0",
|
|
168
200
|
"node-notifier": "10.0.1",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
201
|
+
"prettier": "3.4.2",
|
|
202
|
+
"pretty-bytes": "6.1.1",
|
|
203
|
+
"remark": "15.0.1",
|
|
204
|
+
"remark-cli": "12.0.1",
|
|
205
|
+
"remark-directive": "3.0.0",
|
|
206
|
+
"remark-frontmatter": "5.0.0",
|
|
207
|
+
"remark-gfm": "4.0.0",
|
|
208
|
+
"remark-lint": "10.0.0",
|
|
209
|
+
"remark-lint-blockquote-indentation": "4.0.0",
|
|
210
|
+
"remark-lint-checkbox-character-style": "5.0.0",
|
|
211
|
+
"remark-lint-checkbox-content-indent": "5.0.0",
|
|
212
|
+
"remark-lint-code-block-style": "4.0.0",
|
|
213
|
+
"remark-lint-definition-case": "4.0.0",
|
|
214
|
+
"remark-lint-definition-spacing": "4.0.0",
|
|
215
|
+
"remark-lint-emphasis-marker": "4.0.0",
|
|
216
|
+
"remark-lint-fenced-code-flag": "4.0.0",
|
|
217
|
+
"remark-lint-fenced-code-marker": "4.0.0",
|
|
218
|
+
"remark-lint-file-extension": "3.0.0",
|
|
219
|
+
"remark-lint-final-definition": "4.0.1",
|
|
220
|
+
"remark-lint-final-newline": "3.0.0",
|
|
221
|
+
"remark-lint-first-heading-level": "4.0.0",
|
|
222
|
+
"remark-lint-hard-break-spaces": "4.0.0",
|
|
223
|
+
"remark-lint-heading-increment": "4.0.0",
|
|
224
|
+
"remark-lint-heading-style": "4.0.0",
|
|
225
|
+
"remark-lint-linebreak-style": "4.0.0",
|
|
226
|
+
"remark-lint-link-title-style": "4.0.0",
|
|
227
|
+
"remark-lint-list-item-bullet-indent": "5.0.0",
|
|
228
|
+
"remark-lint-list-item-content-indent": "4.0.0",
|
|
229
|
+
"remark-lint-list-item-indent": "4.0.0",
|
|
230
|
+
"remark-lint-list-item-spacing": "5.0.0",
|
|
231
|
+
"remark-lint-maximum-heading-length": "4.0.0",
|
|
232
|
+
"remark-lint-maximum-line-length": "4.0.1",
|
|
233
|
+
"remark-lint-no-blockquote-without-marker": "6.0.0",
|
|
234
|
+
"remark-lint-no-consecutive-blank-lines": "5.0.0",
|
|
235
|
+
"remark-lint-no-duplicate-defined-urls": "3.0.0",
|
|
236
|
+
"remark-lint-no-duplicate-definitions": "4.0.0",
|
|
237
|
+
"remark-lint-no-duplicate-headings-in-section": "4.0.0",
|
|
238
|
+
"remark-lint-no-emphasis-as-heading": "4.0.0",
|
|
239
|
+
"remark-lint-no-empty-url": "4.0.0",
|
|
240
|
+
"remark-lint-no-file-name-articles": "3.0.0",
|
|
241
|
+
"remark-lint-no-file-name-consecutive-dashes": "3.0.0",
|
|
242
|
+
"remark-lint-no-file-name-irregular-characters": "3.0.0",
|
|
243
|
+
"remark-lint-no-file-name-mixed-case": "3.0.0",
|
|
244
|
+
"remark-lint-no-file-name-outer-dashes": "3.0.0",
|
|
245
|
+
"remark-lint-no-heading-content-indent": "5.0.0",
|
|
246
|
+
"remark-lint-no-heading-indent": "5.0.0",
|
|
247
|
+
"remark-lint-no-heading-like-paragraph": "4.0.0",
|
|
248
|
+
"remark-lint-no-heading-punctuation": "4.0.0",
|
|
249
|
+
"remark-lint-no-literal-urls": "4.0.0",
|
|
250
|
+
"remark-lint-no-missing-blank-lines": "4.0.0",
|
|
251
|
+
"remark-lint-no-multiple-toplevel-headings": "4.0.0",
|
|
252
|
+
"remark-lint-no-paragraph-content-indent": "5.0.0",
|
|
253
|
+
"remark-lint-no-shell-dollars": "4.0.0",
|
|
254
|
+
"remark-lint-no-shortcut-reference-image": "4.0.0",
|
|
255
|
+
"remark-lint-no-shortcut-reference-link": "4.0.0",
|
|
256
|
+
"remark-lint-no-table-indentation": "5.0.0",
|
|
257
|
+
"remark-lint-no-tabs": "4.0.0",
|
|
258
|
+
"remark-lint-no-undefined-references": "5.0.0",
|
|
259
|
+
"remark-lint-no-unneeded-full-reference-image": "4.0.0",
|
|
260
|
+
"remark-lint-no-unneeded-full-reference-link": "4.0.0",
|
|
261
|
+
"remark-lint-no-unused-definitions": "4.0.0",
|
|
262
|
+
"remark-lint-ordered-list-marker-style": "4.0.0",
|
|
263
|
+
"remark-lint-ordered-list-marker-value": "4.0.0",
|
|
264
|
+
"remark-lint-rule-style": "4.0.0",
|
|
265
|
+
"remark-lint-strikethrough-marker": "3.0.0",
|
|
266
|
+
"remark-lint-strong-marker": "4.0.0",
|
|
267
|
+
"remark-lint-table-cell-padding": "5.0.0",
|
|
268
|
+
"remark-lint-table-pipe-alignment": "4.0.0",
|
|
269
|
+
"remark-lint-table-pipes": "5.0.0",
|
|
270
|
+
"remark-lint-unordered-list-marker-style": "4.0.0",
|
|
271
|
+
"remark-validate-links": "13.0.2",
|
|
272
|
+
"sh-syntax": "0.4.2",
|
|
273
|
+
"tinyrainbow": "1.2.0",
|
|
274
|
+
"trash-cli": "6.0.0",
|
|
176
275
|
"ts-dedent": "2.2.0",
|
|
177
|
-
"typescript": "5.
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"vfile": "6.0.1",
|
|
185
|
-
"vite": "4.4.9",
|
|
186
|
-
"vite-tsconfig-paths": "4.2.0",
|
|
187
|
-
"vitepress": "1.0.0-beta.7",
|
|
188
|
-
"vitest": "0.34.1",
|
|
189
|
-
"vitest-github-actions-reporter": "0.10.0",
|
|
190
|
-
"vue": "3.3.4",
|
|
191
|
-
"vue-eslint-parser": "9.3.1",
|
|
192
|
-
"vue-tsc": "1.7.8",
|
|
193
|
-
"yaml-eslint-parser": "1.2.2"
|
|
194
|
-
},
|
|
195
|
-
"peerDependencies": {
|
|
196
|
-
"@types/node": ">=16.18.23",
|
|
197
|
-
"node-fetch": ">=3.3.0"
|
|
198
|
-
},
|
|
199
|
-
"peerDependenciesMeta": {
|
|
200
|
-
"@types/node": {
|
|
201
|
-
"optional": true
|
|
202
|
-
}
|
|
276
|
+
"typescript": "5.7.2",
|
|
277
|
+
"typescript-eslint": "8.18.1",
|
|
278
|
+
"unified": "11.0.5",
|
|
279
|
+
"vfile": "6.0.3",
|
|
280
|
+
"vite": "5.4.11",
|
|
281
|
+
"vitest": "3.0.0-beta.3",
|
|
282
|
+
"yaml-eslint-parser": "1.2.3"
|
|
203
283
|
},
|
|
204
284
|
"resolutions": {
|
|
205
|
-
"
|
|
206
|
-
"@types/unist": "3.0.0",
|
|
207
|
-
"chai": "5.0.0-alpha.1",
|
|
208
|
-
"gray-matter": "4.0.3",
|
|
209
|
-
"vfile": "6.0.1",
|
|
210
|
-
"vitepress@npm:1.0.0-beta.7": "patch:vitepress@npm%3A1.0.0-beta.7#patches/vitepress+1.0.0-beta.7.dev.patch"
|
|
285
|
+
"vite": "5.4.11"
|
|
211
286
|
},
|
|
212
287
|
"engines": {
|
|
213
|
-
"node": ">=
|
|
214
|
-
"yarn": "4.0.0-rc.39"
|
|
288
|
+
"node": ">=18.20.4"
|
|
215
289
|
},
|
|
216
|
-
"packageManager": "yarn@4.
|
|
217
|
-
"
|
|
218
|
-
"sideEffects": false,
|
|
219
|
-
"tagPrefix": ""
|
|
290
|
+
"packageManager": "yarn@4.5.1",
|
|
291
|
+
"sideEffects": false
|
|
220
292
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Enums - AssertType
|
|
3
|
-
* @module mlly/enums/AssertType
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `import` assertion types.
|
|
7
|
-
*
|
|
8
|
-
* ::: info
|
|
9
|
-
* It's unclear whether or not the HTML spec will require assertion types for
|
|
10
|
-
* WebAssembly modules.
|
|
11
|
-
* :::
|
|
12
|
-
*
|
|
13
|
-
* @see https://github.com/WebAssembly/esm-integration/issues/42
|
|
14
|
-
*
|
|
15
|
-
* @enum {Lowercase<string>}
|
|
16
|
-
*/
|
|
17
|
-
declare enum AssertType {
|
|
18
|
-
IMPLICIT = "javascript",
|
|
19
|
-
JSON = "json"
|
|
20
|
-
}
|
|
21
|
-
export default AssertType;
|
package/dist/enums/format.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Enums - Format
|
|
3
|
-
* @module mlly/enums/Format
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Module formats.
|
|
7
|
-
*
|
|
8
|
-
* @enum {Lowercase<string>}
|
|
9
|
-
*/
|
|
10
|
-
declare enum Format {
|
|
11
|
-
BUILTIN = "builtin",
|
|
12
|
-
COMMONJS = "commonjs",
|
|
13
|
-
JSON = "json",
|
|
14
|
-
MODULE = "module",
|
|
15
|
-
WASM = "wasm"
|
|
16
|
-
}
|
|
17
|
-
export default Format;
|
package/dist/enums/format.mjs
DELETED
package/dist/enums/index.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Entry Point - Enums
|
|
3
|
-
* @module mlly/enums
|
|
4
|
-
*/
|
|
5
|
-
export { default as AssertType } from './assert-type.mjs';
|
|
6
|
-
export { default as Format } from './format.mjs';
|
|
7
|
-
export { default as SpecifierKind } from './kind-specifier.mjs';
|
|
8
|
-
export { default as SpecifierSyntaxKind } from './kind-specifier-syntax.mjs';
|
|
9
|
-
export { default as StatementKind } from './kind-statement.mjs';
|
|
10
|
-
export { default as StatementSyntaxKind } from './kind-statement-syntax.mjs';
|
package/dist/enums/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as default2 } from "./assert-type.mjs";
|
|
2
|
-
import { default as default3 } from "./format.mjs";
|
|
3
|
-
import { default as default4 } from "./kind-specifier.mjs";
|
|
4
|
-
import { default as default5 } from "./kind-specifier-syntax.mjs";
|
|
5
|
-
import { default as default6 } from "./kind-statement.mjs";
|
|
6
|
-
import { default as default7 } from "./kind-statement-syntax.mjs";
|
|
7
|
-
export {
|
|
8
|
-
default2 as AssertType,
|
|
9
|
-
default3 as Format,
|
|
10
|
-
default4 as SpecifierKind,
|
|
11
|
-
default5 as SpecifierSyntaxKind,
|
|
12
|
-
default6 as StatementKind,
|
|
13
|
-
default7 as StatementSyntaxKind
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Enums - SpecifierSyntaxKind
|
|
3
|
-
* @module mlly/enums/SpecifierSyntaxKind
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Module specifier syntax types.
|
|
7
|
-
*
|
|
8
|
-
* @enum {Lowercase<string>}
|
|
9
|
-
*/
|
|
10
|
-
declare enum SpecifierSyntaxKind {
|
|
11
|
-
DYNAMIC = "dynamic",
|
|
12
|
-
STATIC = "static"
|
|
13
|
-
}
|
|
14
|
-
export default SpecifierSyntaxKind;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var SpecifierSyntaxKind = /* @__PURE__ */ ((SpecifierSyntaxKind2) => (SpecifierSyntaxKind2.DYNAMIC = "dynamic", SpecifierSyntaxKind2.STATIC = "static", SpecifierSyntaxKind2))(SpecifierSyntaxKind || {}), kind_specifier_syntax_default = SpecifierSyntaxKind;
|
|
2
|
-
export {
|
|
3
|
-
kind_specifier_syntax_default as default
|
|
4
|
-
};
|