@ms-cloudpack/common-types 0.4.0 → 0.5.1
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/lib/allFeatures.d.ts +17 -6
- package/lib/allFeatures.d.ts.map +1 -1
- package/lib/allFeatures.js +18 -6
- package/lib/allFeatures.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +1 -1
- package/schema/AppConfig.json +7 -7
- package/schema/GeneratedConfig.json +59 -10
- package/schema/UserConfig.json +7 -7
package/lib/allFeatures.d.ts
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import type { Feature } from './Feature.js';
|
|
2
2
|
/**
|
|
3
|
-
* A set of options for configuring the experience.
|
|
4
|
-
* behavior.
|
|
3
|
+
* A set of options for configuring the experience.
|
|
4
|
+
* Features can be set to true to change the default behavior.
|
|
5
5
|
*/
|
|
6
6
|
export declare const allFeatures: {
|
|
7
|
+
/** Enables the use of builtin dynamic imports. */
|
|
8
|
+
builtinDynamicImports: Feature;
|
|
9
|
+
/** Disables the generation of source-maps during build. */
|
|
7
10
|
disableSourceMaps: Feature;
|
|
11
|
+
/** Enables the preemptive enqueueing of dependencies during build. */
|
|
8
12
|
enqueueDependencies: Feature;
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Excludes unused dependencies in the generated config during an init run.
|
|
15
|
+
* This helps trim the dependency graph, reduce the import map, and speed up performance.
|
|
16
|
+
*/
|
|
11
17
|
optimizeDependencies: Feature;
|
|
12
|
-
|
|
18
|
+
/** Enables React Native type resolution of .web.ts extensions. */
|
|
19
|
+
resolveWebExtensions: Feature;
|
|
20
|
+
/** Enables the syncing of bundles. */
|
|
13
21
|
syncBundles: Feature;
|
|
14
|
-
|
|
22
|
+
/** Use a single server for both bundles and app assets. */
|
|
23
|
+
useSingleWebServer: Feature;
|
|
24
|
+
/** Enables the verification of exports during init. */
|
|
25
|
+
verifyExports: Feature;
|
|
15
26
|
};
|
|
16
27
|
//# sourceMappingURL=allFeatures.d.ts.map
|
package/lib/allFeatures.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,WAAW;IAGtB,kDAAkD;;IAGlD,2DAA2D;;IAG3D,sEAAsE;;IAGtE;;;OAGG;;IAMH,kEAAkE;;IAGlE,sCAAsC;;IAGtC,2DAA2D;;IAG3D,uDAAuD;;CAExD,CAAC"}
|
package/lib/allFeatures.js
CHANGED
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A set of options for configuring the experience.
|
|
3
|
-
* behavior.
|
|
2
|
+
* A set of options for configuring the experience.
|
|
3
|
+
* Features can be set to true to change the default behavior.
|
|
4
4
|
*/
|
|
5
5
|
export const allFeatures = {
|
|
6
|
+
// The comments provide intellisense, and the description strings are used in the help output.
|
|
7
|
+
/** Enables the use of builtin dynamic imports. */
|
|
8
|
+
builtinDynamicImports: { description: 'Enables the use of builtin dynamic imports.' },
|
|
9
|
+
/** Disables the generation of source-maps during build. */
|
|
6
10
|
disableSourceMaps: { description: 'Disables the generation of source-maps during build.' },
|
|
11
|
+
/** Enables the preemptive enqueueing of dependencies during build. */
|
|
7
12
|
enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' },
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Excludes unused dependencies in the generated config during an init run.
|
|
15
|
+
* This helps trim the dependency graph, reduce the import map, and speed up performance.
|
|
16
|
+
*/
|
|
10
17
|
optimizeDependencies: {
|
|
11
18
|
description: 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',
|
|
12
19
|
},
|
|
13
|
-
|
|
20
|
+
/** Enables React Native type resolution of .web.ts extensions. */
|
|
21
|
+
resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' },
|
|
22
|
+
/** Enables the syncing of bundles. */
|
|
14
23
|
syncBundles: { description: 'Enables the syncing of bundles.' },
|
|
15
|
-
|
|
24
|
+
/** Use a single server for both bundles and app assets. */
|
|
25
|
+
useSingleWebServer: { description: 'Use a single server for both bundles and app assets.' },
|
|
26
|
+
/** Enables the verification of exports during init. */
|
|
27
|
+
verifyExports: { description: 'Enables the verification of exports during init.' },
|
|
16
28
|
};
|
|
17
29
|
//# sourceMappingURL=allFeatures.js.map
|
package/lib/allFeatures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,
|
|
1
|
+
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,kDAAkD;IAClD,qBAAqB,EAAE,EAAE,WAAW,EAAE,6CAA6C,EAAa;IAEhG,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,sEAAsE;IACtE,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAElH;;;OAGG;IACH,oBAAoB,EAAE;QACpB,WAAW,EACT,iKAAiK;KACzJ;IAEZ,kEAAkE;IAClE,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAE/G,sCAAsC;IACtC,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;IAE1E,2DAA2D;IAC3D,kBAAkB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAEtG,uDAAuD;IACvD,aAAa,EAAE,EAAE,WAAW,EAAE,kDAAkD,EAAa;CAC9F,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Enables the use of builtin dynamic imports. */\n builtinDynamicImports: { description: 'Enables the use of builtin dynamic imports.' } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Use a single server for both bundles and app assets. */\n useSingleWebServer: { description: 'Use a single server for both bundles and app assets.' } as Feature,\n\n /** Enables the verification of exports during init. */\n verifyExports: { description: 'Enables the verification of exports during init.' } as Feature,\n};\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
package/schema/AppConfig.json
CHANGED
|
@@ -471,28 +471,28 @@
|
|
|
471
471
|
"Features": {
|
|
472
472
|
"type": "object",
|
|
473
473
|
"properties": {
|
|
474
|
+
"builtinDynamicImports": {
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
474
477
|
"disableSourceMaps": {
|
|
475
478
|
"type": "boolean"
|
|
476
479
|
},
|
|
477
480
|
"enqueueDependencies": {
|
|
478
481
|
"type": "boolean"
|
|
479
482
|
},
|
|
480
|
-
"
|
|
483
|
+
"optimizeDependencies": {
|
|
481
484
|
"type": "boolean"
|
|
482
485
|
},
|
|
483
486
|
"resolveWebExtensions": {
|
|
484
487
|
"type": "boolean"
|
|
485
488
|
},
|
|
486
|
-
"
|
|
487
|
-
"type": "boolean"
|
|
488
|
-
},
|
|
489
|
-
"verifyExports": {
|
|
489
|
+
"syncBundles": {
|
|
490
490
|
"type": "boolean"
|
|
491
491
|
},
|
|
492
|
-
"
|
|
492
|
+
"useSingleWebServer": {
|
|
493
493
|
"type": "boolean"
|
|
494
494
|
},
|
|
495
|
-
"
|
|
495
|
+
"verifyExports": {
|
|
496
496
|
"type": "boolean"
|
|
497
497
|
}
|
|
498
498
|
},
|
|
@@ -338,14 +338,9 @@
|
|
|
338
338
|
{
|
|
339
339
|
"type": "object",
|
|
340
340
|
"additionalProperties": {
|
|
341
|
-
"
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"type": "boolean",
|
|
347
|
-
"const": false
|
|
348
|
-
}
|
|
341
|
+
"type": "boolean",
|
|
342
|
+
"enum": [
|
|
343
|
+
false
|
|
349
344
|
]
|
|
350
345
|
},
|
|
351
346
|
"description": "Make all properties in T optional"
|
|
@@ -636,11 +631,65 @@
|
|
|
636
631
|
"description": "Mapping from dependency name to semver spec."
|
|
637
632
|
},
|
|
638
633
|
"LiteralOrString<(\"aix\"|\"darwin\"|\"freebsd\"|\"linux\"|\"openbsd\"|\"sunos\"|\"win32\"|\"!aix\"|\"!darwin\"|\"!freebsd\"|\"!linux\"|\"!openbsd\"|\"!sunos\"|\"!win32\")>": {
|
|
639
|
-
"
|
|
634
|
+
"anyOf": [
|
|
635
|
+
{
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"type": "string",
|
|
640
|
+
"enum": [
|
|
641
|
+
"aix",
|
|
642
|
+
"darwin",
|
|
643
|
+
"freebsd",
|
|
644
|
+
"linux",
|
|
645
|
+
"openbsd",
|
|
646
|
+
"sunos",
|
|
647
|
+
"win32",
|
|
648
|
+
"!aix",
|
|
649
|
+
"!darwin",
|
|
650
|
+
"!freebsd",
|
|
651
|
+
"!linux",
|
|
652
|
+
"!openbsd",
|
|
653
|
+
"!sunos",
|
|
654
|
+
"!win32"
|
|
655
|
+
]
|
|
656
|
+
}
|
|
657
|
+
],
|
|
640
658
|
"description": "Union type which has intellisense for specific keys but also allows arbitrary strings. This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)"
|
|
641
659
|
},
|
|
642
660
|
"LiteralOrString<(\"arm\"|\"arm64\"|\"ia32\"|\"mips\"|\"mipsel\"|\"ppc\"|\"ppc64\"|\"s390\"|\"s390x\"|\"x32\"|\"x64\"|\"!arm\"|\"!arm64\"|\"!ia32\"|\"!mips\"|\"!mipsel\"|\"!ppc\"|\"!ppc64\"|\"!s390\"|\"!s390x\"|\"!x32\"|\"!x64\")>": {
|
|
643
|
-
"
|
|
661
|
+
"anyOf": [
|
|
662
|
+
{
|
|
663
|
+
"type": "string"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"type": "string",
|
|
667
|
+
"enum": [
|
|
668
|
+
"arm",
|
|
669
|
+
"arm64",
|
|
670
|
+
"ia32",
|
|
671
|
+
"mips",
|
|
672
|
+
"mipsel",
|
|
673
|
+
"ppc",
|
|
674
|
+
"ppc64",
|
|
675
|
+
"s390",
|
|
676
|
+
"s390x",
|
|
677
|
+
"x32",
|
|
678
|
+
"x64",
|
|
679
|
+
"!arm",
|
|
680
|
+
"!arm64",
|
|
681
|
+
"!ia32",
|
|
682
|
+
"!mips",
|
|
683
|
+
"!mipsel",
|
|
684
|
+
"!ppc",
|
|
685
|
+
"!ppc64",
|
|
686
|
+
"!s390",
|
|
687
|
+
"!s390x",
|
|
688
|
+
"!x32",
|
|
689
|
+
"!x64"
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
],
|
|
644
693
|
"description": "Union type which has intellisense for specific keys but also allows arbitrary strings. This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)"
|
|
645
694
|
}
|
|
646
695
|
}
|
package/schema/UserConfig.json
CHANGED
|
@@ -472,28 +472,28 @@
|
|
|
472
472
|
"Features": {
|
|
473
473
|
"type": "object",
|
|
474
474
|
"properties": {
|
|
475
|
+
"builtinDynamicImports": {
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
},
|
|
475
478
|
"disableSourceMaps": {
|
|
476
479
|
"type": "boolean"
|
|
477
480
|
},
|
|
478
481
|
"enqueueDependencies": {
|
|
479
482
|
"type": "boolean"
|
|
480
483
|
},
|
|
481
|
-
"
|
|
484
|
+
"optimizeDependencies": {
|
|
482
485
|
"type": "boolean"
|
|
483
486
|
},
|
|
484
487
|
"resolveWebExtensions": {
|
|
485
488
|
"type": "boolean"
|
|
486
489
|
},
|
|
487
|
-
"
|
|
488
|
-
"type": "boolean"
|
|
489
|
-
},
|
|
490
|
-
"verifyExports": {
|
|
490
|
+
"syncBundles": {
|
|
491
491
|
"type": "boolean"
|
|
492
492
|
},
|
|
493
|
-
"
|
|
493
|
+
"useSingleWebServer": {
|
|
494
494
|
"type": "boolean"
|
|
495
495
|
},
|
|
496
|
-
"
|
|
496
|
+
"verifyExports": {
|
|
497
497
|
"type": "boolean"
|
|
498
498
|
}
|
|
499
499
|
},
|