@granite-js/mpack 0.1.7 → 0.1.9

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bundler/Bundler.d.ts +1 -1
  3. package/dist/bundler/Bundler.js +2 -2
  4. package/dist/bundler/internal/presets.d.ts +2 -1
  5. package/dist/bundler/internal/presets.js +2 -4
  6. package/dist/bundler/plugins/buildStatusPlugin/buildStatusPlugin.d.ts +2 -2
  7. package/dist/bundler/plugins/buildStatusPlugin/buildStatusPlugin.js +4 -5
  8. package/dist/bundler/plugins/dependencyAliasPlugin/aliasResolver.d.ts +1 -1
  9. package/dist/bundler/plugins/dependencyAliasPlugin/protocolResolver.d.ts +1 -1
  10. package/dist/bundler/plugins/shared/swc.d.ts +1 -1
  11. package/dist/bundler/plugins/transformPlugin/steps/createTransformToHermesSyntaxStep.d.ts +1 -1
  12. package/dist/constants/index.d.ts +1 -1
  13. package/dist/constants/index.js +1 -1
  14. package/dist/index.d.ts +3 -6
  15. package/dist/index.js +9 -9
  16. package/dist/metro/build.d.ts +17 -0
  17. package/dist/metro/build.js +108 -0
  18. package/dist/metro/getMetroConfig.d.ts +2 -13
  19. package/dist/metro/getMetroConfig.js +3 -6
  20. package/dist/metro/index.d.ts +1 -2
  21. package/dist/metro/index.js +20 -3
  22. package/dist/operations/build.d.ts +15 -0
  23. package/dist/operations/build.js +100 -0
  24. package/dist/operations/createDebuggerMiddleware.d.ts +1 -2
  25. package/dist/operations/createDebuggerMiddleware.js +4 -4
  26. package/dist/operations/experimental/serve.d.ts +11 -0
  27. package/dist/operations/experimental/{runServer.js → serve.js} +21 -22
  28. package/dist/operations/index.d.ts +3 -3
  29. package/dist/operations/index.js +23 -6
  30. package/dist/operations/openDebugger.d.ts +1 -1
  31. package/dist/operations/openDebugger.js +3 -2
  32. package/dist/operations/serve.d.ts +10 -0
  33. package/dist/operations/{runServer.js → serve.js} +11 -13
  34. package/dist/plugins/statusPlugin.js +1 -1
  35. package/dist/server/DevServer.js +8 -9
  36. package/dist/server/helpers/createBundlerForDevServer.d.ts +3 -5
  37. package/dist/server/helpers/createBundlerForDevServer.js +7 -20
  38. package/dist/server/helpers/mergeBundles.d.ts +1 -1
  39. package/dist/server/plugins/serveBundlePlugin.d.ts +2 -2
  40. package/dist/server/plugins/symbolicatePlugin/symbolicatePlugin.d.ts +2 -2
  41. package/dist/server/types.d.ts +9 -13
  42. package/dist/types/BundlerConfig.d.ts +1 -34
  43. package/dist/types/Id.d.ts +3 -0
  44. package/dist/{bundler/types.js → types/Id.js} +2 -2
  45. package/dist/types/Plugin.d.ts +2 -2
  46. package/dist/types/index.d.ts +1 -5
  47. package/dist/types/index.js +2 -10
  48. package/dist/utils/getDefaultOutfileName.d.ts +1 -0
  49. package/dist/{types/schemas/devServerConfigSchema.js → utils/getDefaultOutfileName.js} +12 -10
  50. package/dist/utils/getId.js +1 -8
  51. package/dist/utils/progressBar.d.ts +1 -1
  52. package/dist/utils/writeBundle.d.ts +1 -1
  53. package/package.json +6 -5
  54. package/dist/bundler/types.d.ts +0 -17
  55. package/dist/metro/runBuild.d.ts +0 -12
  56. package/dist/metro/runBuild.js +0 -66
  57. package/dist/metro/runtime.d.ts +0 -3
  58. package/dist/metro/runtime.js +0 -54
  59. package/dist/metro/types.d.ts +0 -92
  60. package/dist/metro/types.js +0 -16
  61. package/dist/operations/experimental/runServer.d.ts +0 -15
  62. package/dist/operations/runBundle.d.ts +0 -12
  63. package/dist/operations/runBundle.js +0 -83
  64. package/dist/operations/runServer.d.ts +0 -15
  65. package/dist/types/BuildConfig.d.ts +0 -183
  66. package/dist/types/BuildConfig.js +0 -16
  67. package/dist/types/Config.d.ts +0 -12
  68. package/dist/types/Config.js +0 -16
  69. package/dist/types/DevServerConfig.d.ts +0 -4
  70. package/dist/types/DevServerConfig.js +0 -16
  71. package/dist/types/ServicesConfig.d.ts +0 -2
  72. package/dist/types/ServicesConfig.js +0 -16
  73. package/dist/types/TaskConfig.d.ts +0 -11
  74. package/dist/types/TaskConfig.js +0 -16
  75. package/dist/types/schemas/buildConfigSchema.d.ts +0 -198
  76. package/dist/types/schemas/buildConfigSchema.js +0 -70
  77. package/dist/types/schemas/bundlerConfigSchema.d.ts +0 -3
  78. package/dist/types/schemas/bundlerConfigSchema.js +0 -51
  79. package/dist/types/schemas/configSchema.d.ts +0 -3
  80. package/dist/types/schemas/configSchema.js +0 -50
  81. package/dist/types/schemas/devServerConfigSchema.d.ts +0 -3
  82. package/dist/types/schemas/index.d.ts +0 -6
  83. package/dist/types/schemas/index.js +0 -32
  84. package/dist/types/schemas/servicesConfigSchema.d.ts +0 -3
  85. package/dist/types/schemas/servicesConfigSchema.js +0 -48
  86. package/dist/types/schemas/taskConfigSchema.d.ts +0 -3
  87. package/dist/types/schemas/taskConfigSchema.js +0 -44
  88. package/dist/utils/mergeBanners.d.ts +0 -6
  89. package/dist/utils/mergeBanners.js +0 -35
  90. package/dist/utils/mergeBuildConfigs.d.ts +0 -2
  91. package/dist/utils/mergeBuildConfigs.js +0 -59
  92. package/dist/utils/mergeInject.d.ts +0 -3
  93. package/dist/utils/mergeInject.js +0 -30
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var DevServerConfig_exports = {};
16
- module.exports = __toCommonJS(DevServerConfig_exports);
@@ -1,2 +0,0 @@
1
- import type { BundlerConfig } from './BundlerConfig';
2
- export type ServicesConfig = BundlerConfig['services'];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var ServicesConfig_exports = {};
16
- module.exports = __toCommonJS(ServicesConfig_exports);
@@ -1,11 +0,0 @@
1
- import type { BuildConfig } from './BuildConfig';
2
- export type INTERNAL__Id = string & {
3
- __id: true;
4
- };
5
- export interface TaskConfig {
6
- /**
7
- * 작업 식별자
8
- */
9
- tag: string;
10
- build: BuildConfig;
11
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var TaskConfig_exports = {};
16
- module.exports = __toCommonJS(TaskConfig_exports);
@@ -1,198 +0,0 @@
1
- import type * as esbuild from 'esbuild';
2
- import z from 'zod';
3
- import type { AliasConfig, ProtocolConfig } from '../BuildConfig';
4
- export declare const esbuildConfigSchema: z.ZodType<esbuild.BuildOptions & {
5
- /**
6
- * Entry point 최상단에 주입할 스크립트 경로
7
- *
8
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
9
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
10
- *
11
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
12
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
13
- *
14
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
15
- */
16
- prelude?: string[];
17
- }, z.ZodTypeDef, esbuild.BuildOptions & {
18
- /**
19
- * Entry point 최상단에 주입할 스크립트 경로
20
- *
21
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
22
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
23
- *
24
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
25
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
26
- *
27
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
28
- */
29
- prelude?: string[];
30
- }>;
31
- export declare const babelConfigSchema: z.ZodObject<{
32
- configFile: z.ZodOptional<z.ZodString>;
33
- presets: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
34
- plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
35
- conditions: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>, "many">>;
36
- }, "strip", z.ZodTypeAny, {
37
- plugins?: any[] | undefined;
38
- configFile?: string | undefined;
39
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
40
- presets?: any[] | undefined;
41
- }, {
42
- plugins?: any[] | undefined;
43
- configFile?: string | undefined;
44
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
45
- presets?: any[] | undefined;
46
- }>;
47
- export declare const swcConfigSchema: z.ZodObject<{
48
- plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
49
- }, "strip", z.ZodTypeAny, {
50
- plugins?: any[] | undefined;
51
- }, {
52
- plugins?: any[] | undefined;
53
- }>;
54
- export declare const resolverConfigSchema: z.ZodObject<{
55
- alias: z.ZodOptional<z.ZodArray<z.ZodType<AliasConfig, z.ZodTypeDef, AliasConfig>, "many">>;
56
- protocols: z.ZodOptional<z.ZodType<ProtocolConfig, z.ZodTypeDef, ProtocolConfig>>;
57
- }, "strip", z.ZodTypeAny, {
58
- alias?: AliasConfig[] | undefined;
59
- protocols?: ProtocolConfig | undefined;
60
- }, {
61
- alias?: AliasConfig[] | undefined;
62
- protocols?: ProtocolConfig | undefined;
63
- }>;
64
- export declare const buildConfigSchema: z.ZodObject<{
65
- platform: z.ZodEnum<["ios", "android"]>;
66
- entry: z.ZodString;
67
- outfile: z.ZodString;
68
- resolver: z.ZodOptional<z.ZodObject<{
69
- alias: z.ZodOptional<z.ZodArray<z.ZodType<AliasConfig, z.ZodTypeDef, AliasConfig>, "many">>;
70
- protocols: z.ZodOptional<z.ZodType<ProtocolConfig, z.ZodTypeDef, ProtocolConfig>>;
71
- }, "strip", z.ZodTypeAny, {
72
- alias?: AliasConfig[] | undefined;
73
- protocols?: ProtocolConfig | undefined;
74
- }, {
75
- alias?: AliasConfig[] | undefined;
76
- protocols?: ProtocolConfig | undefined;
77
- }>>;
78
- esbuild: z.ZodOptional<z.ZodType<esbuild.BuildOptions & {
79
- /**
80
- * Entry point 최상단에 주입할 스크립트 경로
81
- *
82
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
83
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
84
- *
85
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
86
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
87
- *
88
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
89
- */
90
- prelude?: string[];
91
- }, z.ZodTypeDef, esbuild.BuildOptions & {
92
- /**
93
- * Entry point 최상단에 주입할 스크립트 경로
94
- *
95
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
96
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
97
- *
98
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
99
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
100
- *
101
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
102
- */
103
- prelude?: string[];
104
- }>>;
105
- babel: z.ZodOptional<z.ZodObject<{
106
- configFile: z.ZodOptional<z.ZodString>;
107
- presets: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
108
- plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
109
- conditions: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>, "many">>;
110
- }, "strip", z.ZodTypeAny, {
111
- plugins?: any[] | undefined;
112
- configFile?: string | undefined;
113
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
114
- presets?: any[] | undefined;
115
- }, {
116
- plugins?: any[] | undefined;
117
- configFile?: string | undefined;
118
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
119
- presets?: any[] | undefined;
120
- }>>;
121
- swc: z.ZodOptional<z.ZodObject<{
122
- plugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
123
- }, "strip", z.ZodTypeAny, {
124
- plugins?: any[] | undefined;
125
- }, {
126
- plugins?: any[] | undefined;
127
- }>>;
128
- extra: z.ZodOptional<z.ZodAny>;
129
- }, "strip", z.ZodTypeAny, {
130
- platform: "ios" | "android";
131
- outfile: string;
132
- entry: string;
133
- resolver?: {
134
- alias?: AliasConfig[] | undefined;
135
- protocols?: ProtocolConfig | undefined;
136
- } | undefined;
137
- esbuild?: (esbuild.BuildOptions & {
138
- /**
139
- * Entry point 최상단에 주입할 스크립트 경로
140
- *
141
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
142
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
143
- *
144
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
145
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
146
- *
147
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
148
- */
149
- prelude?: string[];
150
- }) | undefined;
151
- babel?: {
152
- plugins?: any[] | undefined;
153
- configFile?: string | undefined;
154
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
155
- presets?: any[] | undefined;
156
- } | undefined;
157
- swc?: {
158
- plugins?: any[] | undefined;
159
- } | undefined;
160
- extra?: any;
161
- }, {
162
- platform: "ios" | "android";
163
- outfile: string;
164
- entry: string;
165
- resolver?: {
166
- alias?: AliasConfig[] | undefined;
167
- protocols?: ProtocolConfig | undefined;
168
- } | undefined;
169
- esbuild?: (esbuild.BuildOptions & {
170
- /**
171
- * Entry point 최상단에 주입할 스크립트 경로
172
- *
173
- * esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
174
- * entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
175
- *
176
- * - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
177
- * - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
178
- *
179
- * @see issue {@link https://github.com/evanw/esbuild/issues/475}
180
- */
181
- prelude?: string[];
182
- }) | undefined;
183
- babel?: {
184
- plugins?: any[] | undefined;
185
- configFile?: string | undefined;
186
- conditions?: ((...args: unknown[]) => boolean)[] | undefined;
187
- presets?: any[] | undefined;
188
- } | undefined;
189
- swc?: {
190
- plugins?: any[] | undefined;
191
- } | undefined;
192
- extra?: any;
193
- }>;
194
- export type EsbuildConfig = z.infer<typeof esbuildConfigSchema>;
195
- export type BabelConfig = z.infer<typeof babelConfigSchema>;
196
- export type SwcConfig = z.infer<typeof swcConfigSchema>;
197
- export type ResolverConfig = z.infer<typeof resolverConfigSchema>;
198
- export type RawBuildConfig = z.infer<typeof buildConfigSchema>;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var buildConfigSchema_exports = {};
30
- __export(buildConfigSchema_exports, {
31
- babelConfigSchema: () => babelConfigSchema,
32
- buildConfigSchema: () => buildConfigSchema,
33
- esbuildConfigSchema: () => esbuildConfigSchema,
34
- resolverConfigSchema: () => resolverConfigSchema,
35
- swcConfigSchema: () => swcConfigSchema
36
- });
37
- module.exports = __toCommonJS(buildConfigSchema_exports);
38
- var import_zod = __toESM(require("zod"));
39
- const esbuildConfigSchema = import_zod.default.custom();
40
- const babelConfigSchema = import_zod.default.object({
41
- configFile: import_zod.default.string().optional(),
42
- presets: import_zod.default.array(import_zod.default.any()).optional(),
43
- plugins: import_zod.default.array(import_zod.default.any()).optional(),
44
- conditions: import_zod.default.array(import_zod.default.function().returns(import_zod.default.boolean())).optional()
45
- });
46
- const swcConfigSchema = import_zod.default.object({
47
- plugins: import_zod.default.array(import_zod.default.any()).optional()
48
- });
49
- const resolverConfigSchema = import_zod.default.object({
50
- alias: import_zod.default.array(import_zod.default.custom()).optional(),
51
- protocols: import_zod.default.custom().optional()
52
- });
53
- const buildConfigSchema = import_zod.default.object({
54
- platform: import_zod.default.enum(["ios", "android"]),
55
- entry: import_zod.default.string(),
56
- outfile: import_zod.default.string(),
57
- resolver: resolverConfigSchema.optional(),
58
- esbuild: esbuildConfigSchema.optional(),
59
- babel: babelConfigSchema.optional(),
60
- swc: swcConfigSchema.optional(),
61
- extra: import_zod.default.any().optional()
62
- });
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
65
- babelConfigSchema,
66
- buildConfigSchema,
67
- esbuildConfigSchema,
68
- resolverConfigSchema,
69
- swcConfigSchema
70
- });
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- import { BundlerConfig } from '../BundlerConfig';
3
- export declare const bundlerConfigSchema: z.ZodType<BundlerConfig>;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var bundlerConfigSchema_exports = {};
30
- __export(bundlerConfigSchema_exports, {
31
- bundlerConfigSchema: () => bundlerConfigSchema
32
- });
33
- module.exports = __toCommonJS(bundlerConfigSchema_exports);
34
- var import_zod = __toESM(require("zod"));
35
- var import_buildConfigSchema = require("./buildConfigSchema");
36
- const bundlerConfigSchema = import_zod.default.object({
37
- tag: import_zod.default.string(),
38
- rootDir: import_zod.default.string(),
39
- appName: import_zod.default.string(),
40
- scheme: import_zod.default.string(),
41
- buildConfig: import_buildConfigSchema.buildConfigSchema,
42
- env: import_zod.default.enum(["local", "alpha", "staging", "live"]),
43
- dev: import_zod.default.boolean(),
44
- cache: import_zod.default.boolean(),
45
- metafile: import_zod.default.boolean(),
46
- services: import_zod.default.any()
47
- });
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- bundlerConfigSchema
51
- });
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- import type { Config } from '../Config';
3
- export declare const configSchema: z.ZodType<Config>;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var configSchema_exports = {};
30
- __export(configSchema_exports, {
31
- configSchema: () => configSchema
32
- });
33
- module.exports = __toCommonJS(configSchema_exports);
34
- var import_zod = __toESM(require("zod"));
35
- var import_devServerConfigSchema = require("./devServerConfigSchema");
36
- var import_servicesConfigSchema = require("./servicesConfigSchema");
37
- var import_taskConfigSchema = require("./taskConfigSchema");
38
- const configSchema = import_zod.default.object({
39
- appName: import_zod.default.string(),
40
- scheme: import_zod.default.string(),
41
- commands: import_zod.default.array(import_zod.default.any()).optional(),
42
- concurrency: import_zod.default.number().refine(Number.isInteger).default(4),
43
- tasks: import_taskConfigSchema.taskConfigSchema.array(),
44
- devServer: import_devServerConfigSchema.devServerConfigSchema.optional(),
45
- services: import_servicesConfigSchema.servicesConfigSchema.optional()
46
- });
47
- // Annotate the CommonJS export names for ESM import in node:
48
- 0 && (module.exports = {
49
- configSchema
50
- });
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- import type { DevServerConfig } from '../DevServerConfig';
3
- export declare const devServerConfigSchema: z.ZodType<DevServerConfig>;
@@ -1,6 +0,0 @@
1
- export * from './buildConfigSchema';
2
- export * from './bundlerConfigSchema';
3
- export * from './configSchema';
4
- export * from './devServerConfigSchema';
5
- export * from './servicesConfigSchema';
6
- export * from './taskConfigSchema';
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var schemas_exports = {};
17
- module.exports = __toCommonJS(schemas_exports);
18
- __reExport(schemas_exports, require("./buildConfigSchema"), module.exports);
19
- __reExport(schemas_exports, require("./bundlerConfigSchema"), module.exports);
20
- __reExport(schemas_exports, require("./configSchema"), module.exports);
21
- __reExport(schemas_exports, require("./devServerConfigSchema"), module.exports);
22
- __reExport(schemas_exports, require("./servicesConfigSchema"), module.exports);
23
- __reExport(schemas_exports, require("./taskConfigSchema"), module.exports);
24
- // Annotate the CommonJS export names for ESM import in node:
25
- 0 && (module.exports = {
26
- ...require("./buildConfigSchema"),
27
- ...require("./bundlerConfigSchema"),
28
- ...require("./configSchema"),
29
- ...require("./devServerConfigSchema"),
30
- ...require("./servicesConfigSchema"),
31
- ...require("./taskConfigSchema")
32
- });
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- import { ServicesConfig } from '../ServicesConfig';
3
- export declare const servicesConfigSchema: z.ZodType<ServicesConfig>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var servicesConfigSchema_exports = {};
30
- __export(servicesConfigSchema_exports, {
31
- servicesConfigSchema: () => servicesConfigSchema
32
- });
33
- module.exports = __toCommonJS(servicesConfigSchema_exports);
34
- var import_zod = __toESM(require("zod"));
35
- const servicesConfigSchema = import_zod.default.object({
36
- sentry: import_zod.default.object({
37
- enabled: import_zod.default.boolean().optional().default(true),
38
- authToken: import_zod.default.string().optional(),
39
- org: import_zod.default.string().optional(),
40
- project: import_zod.default.string().optional(),
41
- release: import_zod.default.any().optional(),
42
- sourcemap: import_zod.default.any().optional()
43
- }).optional()
44
- });
45
- // Annotate the CommonJS export names for ESM import in node:
46
- 0 && (module.exports = {
47
- servicesConfigSchema
48
- });
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- import type { TaskConfig } from '../TaskConfig';
3
- export declare const taskConfigSchema: z.ZodType<TaskConfig>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var taskConfigSchema_exports = {};
30
- __export(taskConfigSchema_exports, {
31
- taskConfigSchema: () => taskConfigSchema
32
- });
33
- module.exports = __toCommonJS(taskConfigSchema_exports);
34
- var import_zod = __toESM(require("zod"));
35
- var import_buildConfigSchema = require("./buildConfigSchema");
36
- const taskConfigSchema = import_zod.default.object({
37
- tag: import_zod.default.string(),
38
- extra: import_zod.default.any().optional(),
39
- build: import_buildConfigSchema.buildConfigSchema
40
- });
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- taskConfigSchema
44
- });
@@ -1,6 +0,0 @@
1
- import { BuildOptions } from 'esbuild';
2
- type Banner = {
3
- [type: string]: string | false;
4
- };
5
- export declare function mergeBanners(baseBanner: Banner, overrideBanner: Banner): BuildOptions["banner"];
6
- export {};
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var mergeBanners_exports = {};
20
- __export(mergeBanners_exports, {
21
- mergeBanners: () => mergeBanners
22
- });
23
- module.exports = __toCommonJS(mergeBanners_exports);
24
- function mergeBanners(baseBanner, overrideBanner) {
25
- const result = { ...baseBanner };
26
- for (const [key, value] of Object.entries(overrideBanner)) {
27
- result[key] = `${result[key] ?? ""}
28
- ${value}`;
29
- }
30
- return result;
31
- }
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- mergeBanners
35
- });
@@ -1,2 +0,0 @@
1
- import type { BuildConfig } from '../types';
2
- export declare function mergeBuildConfigs(baseConfig: BuildConfig, ...otherConfigs: Partial<BuildConfig>[]): BuildConfig;