@quilted/rollup 0.2.2 → 0.2.4
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 +14 -0
- package/build/esm/app.mjs +124 -65
- package/build/esm/features/react.mjs +22 -0
- package/build/esm/features/typescript.mjs +2 -2
- package/build/esm/index.mjs +1 -1
- package/build/esm/module.mjs +6 -6
- package/build/esm/server.mjs +7 -1
- package/build/esm/shared/browserslist.mjs +2 -1
- package/build/esm/shared/rollup.mjs +5 -12
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/app.d.ts +65 -15
- package/build/typescript/app.d.ts.map +1 -1
- package/build/typescript/features/react.d.ts +28 -0
- package/build/typescript/features/react.d.ts.map +1 -0
- package/build/typescript/features/typescript.d.ts +1 -1
- package/build/typescript/features/typescript.d.ts.map +1 -1
- package/build/typescript/index.d.ts +1 -1
- package/build/typescript/index.d.ts.map +1 -1
- package/build/typescript/module.d.ts +2 -3
- package/build/typescript/module.d.ts.map +1 -1
- package/build/typescript/server.d.ts +4 -2
- package/build/typescript/server.d.ts.map +1 -1
- package/build/typescript/shared/browserslist.d.ts.map +1 -1
- package/build/typescript/shared/rollup.d.ts +2 -1
- package/build/typescript/shared/rollup.d.ts.map +1 -1
- package/package.json +10 -1
- package/source/app.ts +167 -91
- package/source/features/react.ts +26 -0
- package/source/features/typescript.ts +1 -1
- package/source/index.ts +3 -1
- package/source/module.ts +8 -14
- package/source/server.ts +10 -2
- package/source/shared/browserslist.ts +3 -1
- package/source/shared/rollup.ts +6 -12
- package/tsconfig.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RollupOptions, InputPluginOption, GetManualChunk } from 'rollup';
|
|
2
|
+
import { MAGIC_MODULE_ENTRY, MAGIC_MODULE_APP_COMPONENT, MAGIC_MODULE_BROWSER_ASSETS, MAGIC_MODULE_REQUEST_ROUTER } from './constants.ts';
|
|
2
3
|
import { type MagicModuleEnvOptions } from './features/env.ts';
|
|
3
4
|
import { type RollupNodePluginOptions } from './shared/rollup.ts';
|
|
4
5
|
import { type BrowserGroupTargetSelection } from './shared/browserslist.ts';
|
|
@@ -161,13 +162,10 @@ export interface AppServerOutputOptions extends Pick<RollupNodePluginOptions, 'b
|
|
|
161
162
|
*/
|
|
162
163
|
format?: 'esmodules' | 'esm' | 'es' | 'commonjs' | 'cjs';
|
|
163
164
|
}
|
|
164
|
-
export
|
|
165
|
-
export declare function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
};
|
|
169
|
-
plugins: Plugin<any>[];
|
|
170
|
-
onwarn(warning: import("rollup").RollupLog, defaultWarn: import("rollup").LoggingFunction): void;
|
|
165
|
+
export { MAGIC_MODULE_ENTRY, MAGIC_MODULE_APP_COMPONENT, MAGIC_MODULE_BROWSER_ASSETS, MAGIC_MODULE_REQUEST_ROUTER, };
|
|
166
|
+
export declare function quiltAppOptions({ root: rootPath, app, env, graphql, assets, browser: browserOptions, server: serverOptions, }?: AppOptions): Promise<RollupOptions[]>;
|
|
167
|
+
export declare function quiltAppBrowserOptions(options?: AppBrowserOptions): Promise<{
|
|
168
|
+
plugins: InputPluginOption[];
|
|
171
169
|
output: {
|
|
172
170
|
format: "esm" | "systemjs";
|
|
173
171
|
dir: string;
|
|
@@ -185,14 +183,38 @@ export declare function quiltAppBrowser({ root: rootPath, app, entry, env, asset
|
|
|
185
183
|
};
|
|
186
184
|
};
|
|
187
185
|
}>;
|
|
188
|
-
export declare function
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
186
|
+
export declare function quiltAppBrowser({ root: rootPath, app, entry, env, assets, module, graphql, }?: AppBrowserOptions): Promise<InputPluginOption[]>;
|
|
187
|
+
export declare function quiltAppBrowserInput({ root: rootPath, entry, }?: Pick<AppBrowserOptions, 'root' | 'entry'>): {
|
|
188
|
+
name: string;
|
|
189
|
+
options(this: import("rollup").MinimalPluginContext, options: import("rollup").InputOptions): Promise<{
|
|
190
|
+
input: import("rollup").InputOption;
|
|
191
|
+
cache?: boolean | import("rollup").RollupCache | undefined;
|
|
192
|
+
context?: string | undefined;
|
|
193
|
+
experimentalCacheExpiry?: number | undefined;
|
|
194
|
+
experimentalLogSideEffects?: boolean | undefined;
|
|
195
|
+
external?: import("rollup").ExternalOption | undefined;
|
|
196
|
+
logLevel?: import("rollup").LogLevelOption | undefined;
|
|
197
|
+
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined;
|
|
198
|
+
maxParallelFileOps?: number | undefined;
|
|
199
|
+
moduleContext?: ((id: string) => string | import("rollup").NullValue) | {
|
|
200
|
+
[id: string]: string;
|
|
201
|
+
} | undefined;
|
|
202
|
+
onLog?: import("rollup").LogHandlerWithDefault | undefined;
|
|
203
|
+
onwarn?: import("rollup").WarningHandlerWithDefault | undefined;
|
|
204
|
+
perf?: boolean | undefined;
|
|
205
|
+
plugins?: InputPluginOption;
|
|
206
|
+
preserveEntrySignatures?: import("rollup").PreserveEntrySignaturesOption | undefined;
|
|
207
|
+
preserveSymlinks?: boolean | undefined;
|
|
208
|
+
shimMissingExports?: boolean | undefined;
|
|
209
|
+
strictDeprecations?: boolean | undefined;
|
|
210
|
+
treeshake?: boolean | import("rollup").TreeshakingPreset | import("rollup").TreeshakingOptions | undefined;
|
|
211
|
+
watch?: false | import("rollup").WatcherOptions | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
};
|
|
214
|
+
export declare function quiltAppServerOptions(options?: AppServerOptions): Promise<{
|
|
215
|
+
plugins: InputPluginOption[];
|
|
194
216
|
output: {
|
|
195
|
-
format: "
|
|
217
|
+
format: "esm" | "cjs";
|
|
196
218
|
dir: string;
|
|
197
219
|
entryFileNames: string;
|
|
198
220
|
chunkFileNames: string;
|
|
@@ -200,6 +222,34 @@ export declare function quiltAppServer({ root: rootPath, app, env, entry, format
|
|
|
200
222
|
generatedCode: "es2015";
|
|
201
223
|
};
|
|
202
224
|
}>;
|
|
225
|
+
export declare function quiltAppServer({ root: rootPath, app, env, entry, format, graphql, assets, output, }?: AppServerOptions): Promise<InputPluginOption[]>;
|
|
226
|
+
export declare function quiltAppServerInput({ root: rootPath, entry, format, }?: Pick<AppServerOptions, 'root' | 'entry' | 'format'>): {
|
|
227
|
+
name: string;
|
|
228
|
+
options(this: import("rollup").MinimalPluginContext, options: import("rollup").InputOptions): Promise<{
|
|
229
|
+
input: import("rollup").InputOption;
|
|
230
|
+
cache?: boolean | import("rollup").RollupCache | undefined;
|
|
231
|
+
context?: string | undefined;
|
|
232
|
+
experimentalCacheExpiry?: number | undefined;
|
|
233
|
+
experimentalLogSideEffects?: boolean | undefined;
|
|
234
|
+
external?: import("rollup").ExternalOption | undefined;
|
|
235
|
+
logLevel?: import("rollup").LogLevelOption | undefined;
|
|
236
|
+
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined;
|
|
237
|
+
maxParallelFileOps?: number | undefined;
|
|
238
|
+
moduleContext?: ((id: string) => string | import("rollup").NullValue) | {
|
|
239
|
+
[id: string]: string;
|
|
240
|
+
} | undefined;
|
|
241
|
+
onLog?: import("rollup").LogHandlerWithDefault | undefined;
|
|
242
|
+
onwarn?: import("rollup").WarningHandlerWithDefault | undefined;
|
|
243
|
+
perf?: boolean | undefined;
|
|
244
|
+
plugins?: InputPluginOption;
|
|
245
|
+
preserveEntrySignatures?: import("rollup").PreserveEntrySignaturesOption | undefined;
|
|
246
|
+
preserveSymlinks?: boolean | undefined;
|
|
247
|
+
shimMissingExports?: boolean | undefined;
|
|
248
|
+
strictDeprecations?: boolean | undefined;
|
|
249
|
+
treeshake?: boolean | import("rollup").TreeshakingPreset | import("rollup").TreeshakingOptions | undefined;
|
|
250
|
+
watch?: false | import("rollup").WatcherOptions | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
};
|
|
203
253
|
export declare function magicModuleAppComponent({ entry }: {
|
|
204
254
|
entry: string;
|
|
205
255
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../source/app.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../source/app.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACf,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAmB,KAAK,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAIlC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAEpB;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,cAAc,CAAC,GACrD,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAErC;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,cAAc,CAAC,GACnD,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;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ACN,GAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAM;;;;;;;;;;EAqCtC;AAED,wBAAgB,0BAA0B,CAAC,EACzC,OAAc,EACd,QAAiB,GAClB,GAAE,uBAA4B;;;;;;;;;;EA0B9B;AAED,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAiB,GAClB,GAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IACrC,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC3B;;;;;;;;;;EAyDL;AAED,wBAAgB,4BAA4B;;;;;;;;;;EAqE3C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function react(): {
|
|
2
|
+
name: string;
|
|
3
|
+
options(this: import("rollup").MinimalPluginContext, options: import("rollup").InputOptions): {
|
|
4
|
+
onLog(level: import("rollup").LogLevel, log: import("rollup").RollupLog, handler: import("rollup").LogOrStringHandler): void;
|
|
5
|
+
cache?: boolean | import("rollup").RollupCache | undefined;
|
|
6
|
+
context?: string | undefined;
|
|
7
|
+
experimentalCacheExpiry?: number | undefined;
|
|
8
|
+
experimentalLogSideEffects?: boolean | undefined;
|
|
9
|
+
external?: import("rollup").ExternalOption | undefined;
|
|
10
|
+
input?: import("rollup").InputOption | undefined;
|
|
11
|
+
logLevel?: import("rollup").LogLevelOption | undefined;
|
|
12
|
+
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined;
|
|
13
|
+
maxParallelFileOps?: number | undefined;
|
|
14
|
+
moduleContext?: ((id: string) => string | import("rollup").NullValue) | {
|
|
15
|
+
[id: string]: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
onwarn?: import("rollup").WarningHandlerWithDefault | undefined;
|
|
18
|
+
perf?: boolean | undefined;
|
|
19
|
+
plugins?: import("rollup").InputPluginOption;
|
|
20
|
+
preserveEntrySignatures?: import("rollup").PreserveEntrySignaturesOption | undefined;
|
|
21
|
+
preserveSymlinks?: boolean | undefined;
|
|
22
|
+
shimMissingExports?: boolean | undefined;
|
|
23
|
+
strictDeprecations?: boolean | undefined;
|
|
24
|
+
treeshake?: boolean | import("rollup").TreeshakingPreset | import("rollup").TreeshakingOptions | undefined;
|
|
25
|
+
watch?: false | import("rollup").WatcherOptions | undefined;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../source/features/react.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../source/features/typescript.ts"],"names":[],"mappings":"AAGA,wBAAsB,
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../source/features/typescript.ts"],"names":[],"mappings":"AAGA,wBAAsB,eAAe,CAAC,EACpC,IAAoB,GACrB,GAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAM,qDAoBtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { quiltAppOptions, quiltAppBrowser, quiltAppBrowserOptions, quiltAppServer, quiltAppServerOptions, type AppOptions, type AppBaseOptions, type AppBrowserOptions, type AppServerOptions, } from './app.ts';
|
|
2
2
|
export { quiltModule, type ModuleOptions } from './module.ts';
|
|
3
3
|
export { quiltPackage, quiltPackageESModules, quiltPackageESNext, type PackageOptions, } from './package.ts';
|
|
4
4
|
export { quiltServer, type ServerOptions } from './server.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,WAAW,EAAE,KAAK,aAAa,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,WAAW,EAAE,KAAK,aAAa,EAAC,MAAM,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type InputPluginOption } from 'rollup';
|
|
2
2
|
import { RollupNodePluginOptions } from './shared/rollup.ts';
|
|
3
3
|
import { type BrowserGroupTargetSelection } from './shared/browserslist.ts';
|
|
4
4
|
import { type MagicModuleEnvOptions } from './features/env.ts';
|
|
@@ -43,8 +43,7 @@ export interface ModuleAssetsOptions extends Pick<RollupNodePluginOptions, 'bund
|
|
|
43
43
|
}
|
|
44
44
|
export declare function quiltModule({ root: rootPath, entry, env, assets, graphql, }?: ModuleOptions): Promise<{
|
|
45
45
|
input: string;
|
|
46
|
-
plugins:
|
|
47
|
-
onwarn(warning: import("rollup").RollupLog, defaultWarn: import("rollup").LoggingFunction): void;
|
|
46
|
+
plugins: InputPluginOption[];
|
|
48
47
|
output: {
|
|
49
48
|
format: "esm";
|
|
50
49
|
dir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../source/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../source/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,iBAAiB,EAAqB,MAAM,QAAQ,CAAC;AAIlE,OAAO,EACL,uBAAuB,EAGxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAmB,KAAK,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAE/E,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAEpB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAE5D;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC;IAC/C;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC;AAED,wBAAsB,WAAW,CAAC,EAChC,IAAI,EAAE,QAAwB,EAC9B,KAAK,EACL,GAAG,EACH,MAAM,EACN,OAAc,GACf,GAAE,aAAkB;;;;;;;;;;;;;;;;;;GA2FpB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type InputPluginOption } from 'rollup';
|
|
2
2
|
import { RollupNodePluginOptions } from './shared/rollup.ts';
|
|
3
3
|
import { type MagicModuleEnvOptions } from './features/env.ts';
|
|
4
|
+
import { MAGIC_MODULE_ENTRY, MAGIC_MODULE_REQUEST_ROUTER } from './constants.ts';
|
|
4
5
|
export interface ServerOptions {
|
|
5
6
|
/**
|
|
6
7
|
* The root directory containing the source code for your application.
|
|
@@ -82,11 +83,12 @@ export interface ServerOutputOptions extends Pick<RollupNodePluginOptions, 'bund
|
|
|
82
83
|
*/
|
|
83
84
|
format?: 'esmodules' | 'esm' | 'es' | 'commonjs' | 'cjs';
|
|
84
85
|
}
|
|
86
|
+
export { MAGIC_MODULE_ENTRY, MAGIC_MODULE_REQUEST_ROUTER };
|
|
85
87
|
export declare function quiltServer({ root: rootPath, entry, format, env, graphql, output, port, host, }?: ServerOptions): Promise<{
|
|
86
88
|
input: string | {
|
|
87
89
|
server: string;
|
|
88
90
|
};
|
|
89
|
-
plugins:
|
|
91
|
+
plugins: InputPluginOption[];
|
|
90
92
|
onwarn(warning: import("rollup").RollupLog, defaultWarn: import("rollup").LoggingFunction): void;
|
|
91
93
|
output: {
|
|
92
94
|
format: "esm" | "cjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../source/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../source/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,iBAAiB,EAAqB,MAAM,QAAQ,CAAC;AAGlE,OAAO,EACL,uBAAuB,EAGxB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAmB,KAAK,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAC,kBAAkB,EAAE,2BAA2B,EAAC,MAAM,gBAAgB,CAAC;AAG/E,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAEpB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,gBAAgB,GAAG,QAAQ,CAAC;IAErC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAE5D;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC;IAC/C;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAE9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,UAAU,GAAG,KAAK,CAAC;CAC1D;AAED,OAAO,EAAC,kBAAkB,EAAE,2BAA2B,EAAC,CAAC;AAEzD,wBAAsB,WAAW,CAAC,EAChC,IAAI,EAAE,QAAwB,EAC9B,KAAK,EACL,MAAyB,EACzB,GAAG,EACH,OAAc,EACd,MAAM,EACN,IAAI,EACJ,IAAI,GACL,GAAE,aAAkB;;;;;;;;;;;;;;GAgHpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserslist.d.ts","sourceRoot":"","sources":["../../../source/shared/browserslist.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GACnC,SAAS,MAAM,EAAE,GACjB;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEN,wBAAsB,4BAA4B,CAChD,eAAe,GAAE,2BAAgC,EACjD,EAAC,IAAI,EAAC,GAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAM;;;
|
|
1
|
+
{"version":3,"file":"browserslist.d.ts","sourceRoot":"","sources":["../../../source/shared/browserslist.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GACnC,SAAS,MAAM,EAAE,GACjB;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEN,wBAAsB,4BAA4B,CAChD,eAAe,GAAE,2BAAgC,EACjD,EAAC,IAAI,EAAC,GAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAM;;;GA0B7B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,wBAAsB,gBAAgB,CAAC,EACrC,IAAoB,GACrB,GAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAwB/C;AAED,wBAAsB,iCAAiC,CACrD,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuCjC;AAID,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,oBAcrE;AAqBD,wBAAsB,gCAAgC,CACpD,QAAQ,EAAE,SAAS,MAAM,EAAE;;;;;;;GAwE5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Plugin, InputOptions } from 'rollup';
|
|
1
|
+
import type { Plugin, InputOption, InputOptions } from 'rollup';
|
|
2
2
|
import { type RollupReplaceOptions } from '@rollup/plugin-replace';
|
|
3
3
|
export declare function smartReplace(values: NonNullable<RollupReplaceOptions['values']>, options?: Omit<RollupReplaceOptions, 'values'>): Plugin<any>;
|
|
4
4
|
export declare function removeBuildFiles(patterns: string | string[], { root }?: {
|
|
@@ -7,6 +7,7 @@ export declare function removeBuildFiles(patterns: string | string[], { root }?:
|
|
|
7
7
|
name: string;
|
|
8
8
|
buildStart(this: import("rollup").PluginContext): Promise<void>;
|
|
9
9
|
};
|
|
10
|
+
export declare function normalizeRollupInput(input?: InputOption): InputOption | undefined;
|
|
10
11
|
export interface RollupNodeBundle {
|
|
11
12
|
readonly builtins?: boolean;
|
|
12
13
|
readonly dependencies?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../source/shared/rollup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../source/shared/rollup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAC9D,OAAgB,EAAC,KAAK,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE1E,wBAAgB,YAAY,CAC1B,MAAM,EAAE,WAAW,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EACnD,OAAO,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,eAY/C;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,EAAC,IAAoB,EAAC,GAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAM;;;EAe7C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,WAAW,2BAEvD;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAAC;CACrC;AAED,wBAAsB,cAAc,CAAC,EACnC,MAAW,GACZ,GAAE,uBAA4B,0BAkF9B;AAED,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,wCAErE;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,GACxC,YAAY,CAed"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"access": "public",
|
|
7
7
|
"@quilted/registry": "https://registry.npmjs.org"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.4",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=14.0.0"
|
|
12
12
|
},
|
|
@@ -57,6 +57,12 @@
|
|
|
57
57
|
"quilt:source": "./source/features/graphql.ts",
|
|
58
58
|
"quilt:esnext": "./build/esnext/features/graphql.esnext",
|
|
59
59
|
"import": "./build/esm/features/graphql.mjs"
|
|
60
|
+
},
|
|
61
|
+
"./features/typescript": {
|
|
62
|
+
"types": "./build/typescript/features/typescript.d.ts",
|
|
63
|
+
"quilt:source": "./source/features/typescript.ts",
|
|
64
|
+
"quilt:esnext": "./build/esnext/features/typescript.esnext",
|
|
65
|
+
"import": "./build/esm/features/typescript.mjs"
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
"types": "./build/typescript/index.d.ts",
|
|
@@ -79,6 +85,9 @@
|
|
|
79
85
|
],
|
|
80
86
|
"features/graphql": [
|
|
81
87
|
"./build/typescript/features/graphql.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"features/typescript": [
|
|
90
|
+
"./build/typescript/features/typescript.d.ts"
|
|
82
91
|
]
|
|
83
92
|
}
|
|
84
93
|
},
|