@powerlines/plugin-pulumi 0.2.6 → 0.2.7
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/dist/{index-DrS7lbM7.d.cts → index-CBY94ymB.d.cts} +118 -39
- package/dist/{index-DrS7lbM7.d.ts → index-CBY94ymB.d.ts} +118 -39
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/types/index.d.cts +4 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/plugin.d.cts +4 -1
- package/dist/types/plugin.d.ts +4 -1
- package/package.json +10 -10
|
@@ -9,9 +9,12 @@ import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
|
9
9
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
10
10
|
import { PackageJson } from '@stryke/types/package-json';
|
|
11
11
|
import { Jiti } from 'jiti';
|
|
12
|
+
import { SourceMap } from 'magic-string';
|
|
12
13
|
import { Range } from 'semver';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
14
|
+
import { Project } from 'ts-morph';
|
|
15
|
+
import { UnpluginMessage, ExternalIdResult, UnpluginContext, UnpluginBuildContext, TransformResult as TransformResult$1, HookFilter, UnpluginOptions } from 'unplugin';
|
|
16
|
+
import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
|
|
17
|
+
import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
15
18
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
16
19
|
import ts from 'typescript';
|
|
17
20
|
import { ArrayValues } from '@stryke/types/array';
|
|
@@ -239,21 +242,27 @@ interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
|
239
242
|
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
240
243
|
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
241
244
|
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
242
|
-
interface
|
|
245
|
+
interface ResolveOptions extends ResolveOptions$1 {
|
|
243
246
|
/**
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
* If true, the module is being resolved as an entry point.
|
|
248
|
+
*/
|
|
249
|
+
isEntry?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* If true, the resolver will skip using the cache when resolving modules.
|
|
252
|
+
*/
|
|
253
|
+
skipCache?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* An array of external modules or patterns to exclude from resolution.
|
|
247
256
|
*/
|
|
248
|
-
|
|
257
|
+
external?: (string | RegExp)[];
|
|
249
258
|
/**
|
|
250
|
-
*
|
|
259
|
+
* An array of modules or patterns to include in the resolution, even if they are marked as external.
|
|
251
260
|
*/
|
|
252
|
-
|
|
261
|
+
noExternal?: (string | RegExp)[];
|
|
253
262
|
/**
|
|
254
|
-
*
|
|
263
|
+
* An array of patterns to match when resolving modules.
|
|
255
264
|
*/
|
|
256
|
-
|
|
265
|
+
skipNodeModulesBundle?: boolean;
|
|
257
266
|
}
|
|
258
267
|
interface VirtualFileSystemInterface {
|
|
259
268
|
/**
|
|
@@ -267,27 +276,33 @@ interface VirtualFileSystemInterface {
|
|
|
267
276
|
/**
|
|
268
277
|
* The underlying file metadata.
|
|
269
278
|
*/
|
|
270
|
-
metadata: Record<string, VirtualFileMetadata
|
|
279
|
+
metadata: Readonly<Record<string, VirtualFileMetadata>>;
|
|
280
|
+
/**
|
|
281
|
+
* A map of file paths to their module ids.
|
|
282
|
+
*/
|
|
283
|
+
ids: Readonly<Record<string, string>>;
|
|
271
284
|
/**
|
|
272
285
|
* A map of module ids to their file paths.
|
|
273
286
|
*/
|
|
274
|
-
|
|
287
|
+
paths: Readonly<Record<string, string>>;
|
|
275
288
|
/**
|
|
276
289
|
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
277
290
|
*
|
|
278
291
|
* @param pathOrId - The path or id to check.
|
|
292
|
+
* @param importer - The importer path, if any.
|
|
279
293
|
* @param options - Optional parameters for resolving the path.
|
|
280
294
|
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
281
295
|
*/
|
|
282
|
-
isVirtual: (pathOrId: string, options?:
|
|
296
|
+
isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
283
297
|
/**
|
|
284
298
|
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
285
299
|
*
|
|
286
300
|
* @param pathOrId - The path or id to check.
|
|
301
|
+
* @param importer - The importer path, if any.
|
|
287
302
|
* @param options - Optional parameters for resolving the path.
|
|
288
303
|
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
289
304
|
*/
|
|
290
|
-
isPhysical: (pathOrId: string, options?:
|
|
305
|
+
isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
291
306
|
/**
|
|
292
307
|
* Checks if a file exists in the virtual file system (VFS).
|
|
293
308
|
*
|
|
@@ -315,7 +330,7 @@ interface VirtualFileSystemInterface {
|
|
|
315
330
|
* @param pathOrId - The path or id of the file.
|
|
316
331
|
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
317
332
|
*/
|
|
318
|
-
getMetadata: (pathOrId:
|
|
333
|
+
getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
|
|
319
334
|
/**
|
|
320
335
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
321
336
|
*
|
|
@@ -388,7 +403,7 @@ interface VirtualFileSystemInterface {
|
|
|
388
403
|
* @param path - The path to the file to remove.
|
|
389
404
|
* @returns A promise that resolves when the file is removed.
|
|
390
405
|
*/
|
|
391
|
-
unlinkSync: (path:
|
|
406
|
+
unlinkSync: (path: string, options?: ResolveFSOptions) => void;
|
|
392
407
|
/**
|
|
393
408
|
* Asynchronously removes a file or symbolic link in the virtual file system (VFS).
|
|
394
409
|
*
|
|
@@ -402,7 +417,7 @@ interface VirtualFileSystemInterface {
|
|
|
402
417
|
* @param path - The path to create the directory at.
|
|
403
418
|
* @param options - Options for creating the directory.
|
|
404
419
|
*/
|
|
405
|
-
rmdirSync: (path:
|
|
420
|
+
rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
|
|
406
421
|
/**
|
|
407
422
|
* Removes a directory in the virtual file system (VFS).
|
|
408
423
|
*
|
|
@@ -410,7 +425,7 @@ interface VirtualFileSystemInterface {
|
|
|
410
425
|
* @param options - Options for creating the directory.
|
|
411
426
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
412
427
|
*/
|
|
413
|
-
rmdir: (path:
|
|
428
|
+
rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
|
|
414
429
|
/**
|
|
415
430
|
* Removes a file or directory in the virtual file system (VFS).
|
|
416
431
|
*
|
|
@@ -418,14 +433,14 @@ interface VirtualFileSystemInterface {
|
|
|
418
433
|
* @param options - Options for removing the file or directory.
|
|
419
434
|
* @returns A promise that resolves when the file or directory is removed.
|
|
420
435
|
*/
|
|
421
|
-
rm: (path:
|
|
436
|
+
rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
|
|
422
437
|
/**
|
|
423
438
|
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
424
439
|
*
|
|
425
440
|
* @param path - The path to the file or directory to remove.
|
|
426
441
|
* @param options - Options for removing the file or directory.
|
|
427
442
|
*/
|
|
428
|
-
rmSync: (path:
|
|
443
|
+
rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
|
|
429
444
|
/**
|
|
430
445
|
* Creates a directory in the virtual file system (VFS).
|
|
431
446
|
*
|
|
@@ -433,7 +448,7 @@ interface VirtualFileSystemInterface {
|
|
|
433
448
|
* @param options - Options for creating the directory.
|
|
434
449
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
435
450
|
*/
|
|
436
|
-
mkdirSync: (path:
|
|
451
|
+
mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
|
|
437
452
|
/**
|
|
438
453
|
* Creates a directory in the virtual file system (VFS).
|
|
439
454
|
*
|
|
@@ -441,7 +456,7 @@ interface VirtualFileSystemInterface {
|
|
|
441
456
|
* @param options - Options for creating the directory.
|
|
442
457
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
443
458
|
*/
|
|
444
|
-
mkdir: (path:
|
|
459
|
+
mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
|
|
445
460
|
/**
|
|
446
461
|
* Reads a file from the virtual file system (VFS).
|
|
447
462
|
*
|
|
@@ -463,7 +478,7 @@ interface VirtualFileSystemInterface {
|
|
|
463
478
|
* @param options - Optional parameters for writing the file.
|
|
464
479
|
* @returns A promise that resolves when the file is written.
|
|
465
480
|
*/
|
|
466
|
-
writeFile: (path:
|
|
481
|
+
writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
|
|
467
482
|
/**
|
|
468
483
|
* Writes a file to the virtual file system (VFS).
|
|
469
484
|
*
|
|
@@ -471,7 +486,7 @@ interface VirtualFileSystemInterface {
|
|
|
471
486
|
* @param data - The contents of the file.
|
|
472
487
|
* @param options - Optional parameters for writing the file.
|
|
473
488
|
*/
|
|
474
|
-
writeFileSync: (path:
|
|
489
|
+
writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
|
|
475
490
|
/**
|
|
476
491
|
* Moves a file from one path to another in the virtual file system (VFS).
|
|
477
492
|
*
|
|
@@ -518,24 +533,43 @@ interface VirtualFileSystemInterface {
|
|
|
518
533
|
* Resolves a path or id to a file path in the virtual file system.
|
|
519
534
|
*
|
|
520
535
|
* @param pathOrId - The path or id of the file to resolve.
|
|
521
|
-
* @param options - Optional parameters for resolving the path.
|
|
522
536
|
* @returns The resolved path of the file if it exists, otherwise false.
|
|
523
537
|
*/
|
|
524
|
-
|
|
538
|
+
realpathSync: (pathOrId: string) => string;
|
|
525
539
|
/**
|
|
526
|
-
*
|
|
540
|
+
* A helper function to resolve modules using the Jiti resolver
|
|
527
541
|
*
|
|
528
|
-
* @
|
|
529
|
-
*
|
|
542
|
+
* @remarks
|
|
543
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```ts
|
|
547
|
+
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
548
|
+
* ```
|
|
549
|
+
*
|
|
550
|
+
* @param id - The module to resolve.
|
|
551
|
+
* @param importer - An optional path to the importer module.
|
|
552
|
+
* @param options - Additional resolution options.
|
|
553
|
+
* @returns A promise that resolves to the resolved module path.
|
|
530
554
|
*/
|
|
531
|
-
|
|
555
|
+
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
|
|
532
556
|
/**
|
|
533
|
-
*
|
|
557
|
+
* A synchronous helper function to resolve modules using the Jiti resolver
|
|
534
558
|
*
|
|
535
|
-
* @
|
|
536
|
-
*
|
|
559
|
+
* @remarks
|
|
560
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```ts
|
|
564
|
+
* const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
|
|
565
|
+
* ```
|
|
566
|
+
*
|
|
567
|
+
* @param id - The module to resolve.
|
|
568
|
+
* @param importer - An optional path to the importer module.
|
|
569
|
+
* @param options - Additional resolution options.
|
|
570
|
+
* @returns The resolved module path.
|
|
537
571
|
*/
|
|
538
|
-
|
|
572
|
+
resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
|
|
539
573
|
/**
|
|
540
574
|
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
541
575
|
*/
|
|
@@ -1007,6 +1041,10 @@ interface MetaInfo {
|
|
|
1007
1041
|
interface Resolver extends Jiti {
|
|
1008
1042
|
plugin: Jiti;
|
|
1009
1043
|
}
|
|
1044
|
+
interface TransformResult {
|
|
1045
|
+
code: string;
|
|
1046
|
+
map: SourceMap | null;
|
|
1047
|
+
}
|
|
1010
1048
|
interface InitContextOptions {
|
|
1011
1049
|
/**
|
|
1012
1050
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -1141,6 +1179,47 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1141
1179
|
* The builtin module id that exist in the Powerlines virtual file system
|
|
1142
1180
|
*/
|
|
1143
1181
|
builtins: string[];
|
|
1182
|
+
/**
|
|
1183
|
+
* The {@link Project} instance used for type reflection and module manipulation
|
|
1184
|
+
*
|
|
1185
|
+
* @see https://ts-morph.com/
|
|
1186
|
+
*
|
|
1187
|
+
* @remarks
|
|
1188
|
+
* This instance is created lazily on first access.
|
|
1189
|
+
*/
|
|
1190
|
+
program: Project;
|
|
1191
|
+
/**
|
|
1192
|
+
* A helper function to resolve modules using the Jiti resolver
|
|
1193
|
+
*
|
|
1194
|
+
* @remarks
|
|
1195
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
1196
|
+
*
|
|
1197
|
+
* @example
|
|
1198
|
+
* ```ts
|
|
1199
|
+
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
1200
|
+
* ```
|
|
1201
|
+
*
|
|
1202
|
+
* @param id - The module to resolve.
|
|
1203
|
+
* @param importer - An optional path to the importer module.
|
|
1204
|
+
* @param options - Additional resolution options.
|
|
1205
|
+
* @returns A promise that resolves to the resolved module path.
|
|
1206
|
+
*/
|
|
1207
|
+
resolveId: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
|
|
1208
|
+
/**
|
|
1209
|
+
* A helper function to load modules using the Jiti resolver
|
|
1210
|
+
*
|
|
1211
|
+
* @remarks
|
|
1212
|
+
* This function can be used to load modules relative to the project root directory.
|
|
1213
|
+
*
|
|
1214
|
+
* @example
|
|
1215
|
+
* ```ts
|
|
1216
|
+
* const module = await context.load("some-module", "/path/to/importer");
|
|
1217
|
+
* ```
|
|
1218
|
+
*
|
|
1219
|
+
* @param id - The module to load.
|
|
1220
|
+
* @returns A promise that resolves to the loaded module.
|
|
1221
|
+
*/
|
|
1222
|
+
load: (id: string) => Promise<TransformResult | undefined>;
|
|
1144
1223
|
/**
|
|
1145
1224
|
* The Powerlines builtin virtual files
|
|
1146
1225
|
*/
|
|
@@ -1310,7 +1389,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1310
1389
|
* @param id - The identifier of the source code.
|
|
1311
1390
|
* @returns A promise that resolves when the hook is complete.
|
|
1312
1391
|
*/
|
|
1313
|
-
transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
|
|
1392
|
+
transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>;
|
|
1314
1393
|
/**
|
|
1315
1394
|
* A hook that is called to load the source code.
|
|
1316
1395
|
*
|
|
@@ -1318,7 +1397,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1318
1397
|
* @param id - The identifier of the source code.
|
|
1319
1398
|
* @returns A promise that resolves when the hook is complete.
|
|
1320
1399
|
*/
|
|
1321
|
-
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
|
|
1400
|
+
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>;
|
|
1322
1401
|
/**
|
|
1323
1402
|
* A hook that is called to resolve the identifier of the source code.
|
|
1324
1403
|
*
|
|
@@ -1368,7 +1447,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1368
1447
|
* @param id - The identifier of the source code.
|
|
1369
1448
|
* @returns A promise that resolves when the hook is complete.
|
|
1370
1449
|
*/
|
|
1371
|
-
transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
|
|
1450
|
+
transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>, "code" | "id">;
|
|
1372
1451
|
/**
|
|
1373
1452
|
* A hook that is called to load the source code.
|
|
1374
1453
|
*
|
|
@@ -1376,7 +1455,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1376
1455
|
* @param id - The identifier of the source code.
|
|
1377
1456
|
* @returns A promise that resolves when the hook is complete.
|
|
1378
1457
|
*/
|
|
1379
|
-
load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
|
|
1458
|
+
load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>, "id">;
|
|
1380
1459
|
/**
|
|
1381
1460
|
* A hook that is called to resolve the identifier of the source code.
|
|
1382
1461
|
*
|
|
@@ -9,9 +9,12 @@ import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
|
9
9
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
10
10
|
import { PackageJson } from '@stryke/types/package-json';
|
|
11
11
|
import { Jiti } from 'jiti';
|
|
12
|
+
import { SourceMap } from 'magic-string';
|
|
12
13
|
import { Range } from 'semver';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
14
|
+
import { Project } from 'ts-morph';
|
|
15
|
+
import { UnpluginMessage, ExternalIdResult, UnpluginContext, UnpluginBuildContext, TransformResult as TransformResult$1, HookFilter, UnpluginOptions } from 'unplugin';
|
|
16
|
+
import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
|
|
17
|
+
import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
15
18
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
16
19
|
import ts from 'typescript';
|
|
17
20
|
import { ArrayValues } from '@stryke/types/array';
|
|
@@ -239,21 +242,27 @@ interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
|
239
242
|
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
240
243
|
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
241
244
|
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
242
|
-
interface
|
|
245
|
+
interface ResolveOptions extends ResolveOptions$1 {
|
|
243
246
|
/**
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
* If true, the module is being resolved as an entry point.
|
|
248
|
+
*/
|
|
249
|
+
isEntry?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* If true, the resolver will skip using the cache when resolving modules.
|
|
252
|
+
*/
|
|
253
|
+
skipCache?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* An array of external modules or patterns to exclude from resolution.
|
|
247
256
|
*/
|
|
248
|
-
|
|
257
|
+
external?: (string | RegExp)[];
|
|
249
258
|
/**
|
|
250
|
-
*
|
|
259
|
+
* An array of modules or patterns to include in the resolution, even if they are marked as external.
|
|
251
260
|
*/
|
|
252
|
-
|
|
261
|
+
noExternal?: (string | RegExp)[];
|
|
253
262
|
/**
|
|
254
|
-
*
|
|
263
|
+
* An array of patterns to match when resolving modules.
|
|
255
264
|
*/
|
|
256
|
-
|
|
265
|
+
skipNodeModulesBundle?: boolean;
|
|
257
266
|
}
|
|
258
267
|
interface VirtualFileSystemInterface {
|
|
259
268
|
/**
|
|
@@ -267,27 +276,33 @@ interface VirtualFileSystemInterface {
|
|
|
267
276
|
/**
|
|
268
277
|
* The underlying file metadata.
|
|
269
278
|
*/
|
|
270
|
-
metadata: Record<string, VirtualFileMetadata
|
|
279
|
+
metadata: Readonly<Record<string, VirtualFileMetadata>>;
|
|
280
|
+
/**
|
|
281
|
+
* A map of file paths to their module ids.
|
|
282
|
+
*/
|
|
283
|
+
ids: Readonly<Record<string, string>>;
|
|
271
284
|
/**
|
|
272
285
|
* A map of module ids to their file paths.
|
|
273
286
|
*/
|
|
274
|
-
|
|
287
|
+
paths: Readonly<Record<string, string>>;
|
|
275
288
|
/**
|
|
276
289
|
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
277
290
|
*
|
|
278
291
|
* @param pathOrId - The path or id to check.
|
|
292
|
+
* @param importer - The importer path, if any.
|
|
279
293
|
* @param options - Optional parameters for resolving the path.
|
|
280
294
|
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
281
295
|
*/
|
|
282
|
-
isVirtual: (pathOrId: string, options?:
|
|
296
|
+
isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
283
297
|
/**
|
|
284
298
|
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
285
299
|
*
|
|
286
300
|
* @param pathOrId - The path or id to check.
|
|
301
|
+
* @param importer - The importer path, if any.
|
|
287
302
|
* @param options - Optional parameters for resolving the path.
|
|
288
303
|
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
289
304
|
*/
|
|
290
|
-
isPhysical: (pathOrId: string, options?:
|
|
305
|
+
isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
291
306
|
/**
|
|
292
307
|
* Checks if a file exists in the virtual file system (VFS).
|
|
293
308
|
*
|
|
@@ -315,7 +330,7 @@ interface VirtualFileSystemInterface {
|
|
|
315
330
|
* @param pathOrId - The path or id of the file.
|
|
316
331
|
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
317
332
|
*/
|
|
318
|
-
getMetadata: (pathOrId:
|
|
333
|
+
getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
|
|
319
334
|
/**
|
|
320
335
|
* Gets the stats of a file in the virtual file system (VFS).
|
|
321
336
|
*
|
|
@@ -388,7 +403,7 @@ interface VirtualFileSystemInterface {
|
|
|
388
403
|
* @param path - The path to the file to remove.
|
|
389
404
|
* @returns A promise that resolves when the file is removed.
|
|
390
405
|
*/
|
|
391
|
-
unlinkSync: (path:
|
|
406
|
+
unlinkSync: (path: string, options?: ResolveFSOptions) => void;
|
|
392
407
|
/**
|
|
393
408
|
* Asynchronously removes a file or symbolic link in the virtual file system (VFS).
|
|
394
409
|
*
|
|
@@ -402,7 +417,7 @@ interface VirtualFileSystemInterface {
|
|
|
402
417
|
* @param path - The path to create the directory at.
|
|
403
418
|
* @param options - Options for creating the directory.
|
|
404
419
|
*/
|
|
405
|
-
rmdirSync: (path:
|
|
420
|
+
rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
|
|
406
421
|
/**
|
|
407
422
|
* Removes a directory in the virtual file system (VFS).
|
|
408
423
|
*
|
|
@@ -410,7 +425,7 @@ interface VirtualFileSystemInterface {
|
|
|
410
425
|
* @param options - Options for creating the directory.
|
|
411
426
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
412
427
|
*/
|
|
413
|
-
rmdir: (path:
|
|
428
|
+
rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
|
|
414
429
|
/**
|
|
415
430
|
* Removes a file or directory in the virtual file system (VFS).
|
|
416
431
|
*
|
|
@@ -418,14 +433,14 @@ interface VirtualFileSystemInterface {
|
|
|
418
433
|
* @param options - Options for removing the file or directory.
|
|
419
434
|
* @returns A promise that resolves when the file or directory is removed.
|
|
420
435
|
*/
|
|
421
|
-
rm: (path:
|
|
436
|
+
rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
|
|
422
437
|
/**
|
|
423
438
|
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
424
439
|
*
|
|
425
440
|
* @param path - The path to the file or directory to remove.
|
|
426
441
|
* @param options - Options for removing the file or directory.
|
|
427
442
|
*/
|
|
428
|
-
rmSync: (path:
|
|
443
|
+
rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
|
|
429
444
|
/**
|
|
430
445
|
* Creates a directory in the virtual file system (VFS).
|
|
431
446
|
*
|
|
@@ -433,7 +448,7 @@ interface VirtualFileSystemInterface {
|
|
|
433
448
|
* @param options - Options for creating the directory.
|
|
434
449
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
435
450
|
*/
|
|
436
|
-
mkdirSync: (path:
|
|
451
|
+
mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
|
|
437
452
|
/**
|
|
438
453
|
* Creates a directory in the virtual file system (VFS).
|
|
439
454
|
*
|
|
@@ -441,7 +456,7 @@ interface VirtualFileSystemInterface {
|
|
|
441
456
|
* @param options - Options for creating the directory.
|
|
442
457
|
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
443
458
|
*/
|
|
444
|
-
mkdir: (path:
|
|
459
|
+
mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
|
|
445
460
|
/**
|
|
446
461
|
* Reads a file from the virtual file system (VFS).
|
|
447
462
|
*
|
|
@@ -463,7 +478,7 @@ interface VirtualFileSystemInterface {
|
|
|
463
478
|
* @param options - Optional parameters for writing the file.
|
|
464
479
|
* @returns A promise that resolves when the file is written.
|
|
465
480
|
*/
|
|
466
|
-
writeFile: (path:
|
|
481
|
+
writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
|
|
467
482
|
/**
|
|
468
483
|
* Writes a file to the virtual file system (VFS).
|
|
469
484
|
*
|
|
@@ -471,7 +486,7 @@ interface VirtualFileSystemInterface {
|
|
|
471
486
|
* @param data - The contents of the file.
|
|
472
487
|
* @param options - Optional parameters for writing the file.
|
|
473
488
|
*/
|
|
474
|
-
writeFileSync: (path:
|
|
489
|
+
writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
|
|
475
490
|
/**
|
|
476
491
|
* Moves a file from one path to another in the virtual file system (VFS).
|
|
477
492
|
*
|
|
@@ -518,24 +533,43 @@ interface VirtualFileSystemInterface {
|
|
|
518
533
|
* Resolves a path or id to a file path in the virtual file system.
|
|
519
534
|
*
|
|
520
535
|
* @param pathOrId - The path or id of the file to resolve.
|
|
521
|
-
* @param options - Optional parameters for resolving the path.
|
|
522
536
|
* @returns The resolved path of the file if it exists, otherwise false.
|
|
523
537
|
*/
|
|
524
|
-
|
|
538
|
+
realpathSync: (pathOrId: string) => string;
|
|
525
539
|
/**
|
|
526
|
-
*
|
|
540
|
+
* A helper function to resolve modules using the Jiti resolver
|
|
527
541
|
*
|
|
528
|
-
* @
|
|
529
|
-
*
|
|
542
|
+
* @remarks
|
|
543
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```ts
|
|
547
|
+
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
548
|
+
* ```
|
|
549
|
+
*
|
|
550
|
+
* @param id - The module to resolve.
|
|
551
|
+
* @param importer - An optional path to the importer module.
|
|
552
|
+
* @param options - Additional resolution options.
|
|
553
|
+
* @returns A promise that resolves to the resolved module path.
|
|
530
554
|
*/
|
|
531
|
-
|
|
555
|
+
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
|
|
532
556
|
/**
|
|
533
|
-
*
|
|
557
|
+
* A synchronous helper function to resolve modules using the Jiti resolver
|
|
534
558
|
*
|
|
535
|
-
* @
|
|
536
|
-
*
|
|
559
|
+
* @remarks
|
|
560
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```ts
|
|
564
|
+
* const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
|
|
565
|
+
* ```
|
|
566
|
+
*
|
|
567
|
+
* @param id - The module to resolve.
|
|
568
|
+
* @param importer - An optional path to the importer module.
|
|
569
|
+
* @param options - Additional resolution options.
|
|
570
|
+
* @returns The resolved module path.
|
|
537
571
|
*/
|
|
538
|
-
|
|
572
|
+
resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
|
|
539
573
|
/**
|
|
540
574
|
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
541
575
|
*/
|
|
@@ -1007,6 +1041,10 @@ interface MetaInfo {
|
|
|
1007
1041
|
interface Resolver extends Jiti {
|
|
1008
1042
|
plugin: Jiti;
|
|
1009
1043
|
}
|
|
1044
|
+
interface TransformResult {
|
|
1045
|
+
code: string;
|
|
1046
|
+
map: SourceMap | null;
|
|
1047
|
+
}
|
|
1010
1048
|
interface InitContextOptions {
|
|
1011
1049
|
/**
|
|
1012
1050
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -1141,6 +1179,47 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1141
1179
|
* The builtin module id that exist in the Powerlines virtual file system
|
|
1142
1180
|
*/
|
|
1143
1181
|
builtins: string[];
|
|
1182
|
+
/**
|
|
1183
|
+
* The {@link Project} instance used for type reflection and module manipulation
|
|
1184
|
+
*
|
|
1185
|
+
* @see https://ts-morph.com/
|
|
1186
|
+
*
|
|
1187
|
+
* @remarks
|
|
1188
|
+
* This instance is created lazily on first access.
|
|
1189
|
+
*/
|
|
1190
|
+
program: Project;
|
|
1191
|
+
/**
|
|
1192
|
+
* A helper function to resolve modules using the Jiti resolver
|
|
1193
|
+
*
|
|
1194
|
+
* @remarks
|
|
1195
|
+
* This function can be used to resolve modules relative to the project root directory.
|
|
1196
|
+
*
|
|
1197
|
+
* @example
|
|
1198
|
+
* ```ts
|
|
1199
|
+
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
1200
|
+
* ```
|
|
1201
|
+
*
|
|
1202
|
+
* @param id - The module to resolve.
|
|
1203
|
+
* @param importer - An optional path to the importer module.
|
|
1204
|
+
* @param options - Additional resolution options.
|
|
1205
|
+
* @returns A promise that resolves to the resolved module path.
|
|
1206
|
+
*/
|
|
1207
|
+
resolveId: (id: string, importer?: string, options?: ResolveOptions) => Promise<ExternalIdResult | undefined>;
|
|
1208
|
+
/**
|
|
1209
|
+
* A helper function to load modules using the Jiti resolver
|
|
1210
|
+
*
|
|
1211
|
+
* @remarks
|
|
1212
|
+
* This function can be used to load modules relative to the project root directory.
|
|
1213
|
+
*
|
|
1214
|
+
* @example
|
|
1215
|
+
* ```ts
|
|
1216
|
+
* const module = await context.load("some-module", "/path/to/importer");
|
|
1217
|
+
* ```
|
|
1218
|
+
*
|
|
1219
|
+
* @param id - The module to load.
|
|
1220
|
+
* @returns A promise that resolves to the loaded module.
|
|
1221
|
+
*/
|
|
1222
|
+
load: (id: string) => Promise<TransformResult | undefined>;
|
|
1144
1223
|
/**
|
|
1145
1224
|
* The Powerlines builtin virtual files
|
|
1146
1225
|
*/
|
|
@@ -1310,7 +1389,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1310
1389
|
* @param id - The identifier of the source code.
|
|
1311
1390
|
* @returns A promise that resolves when the hook is complete.
|
|
1312
1391
|
*/
|
|
1313
|
-
transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
|
|
1392
|
+
transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>;
|
|
1314
1393
|
/**
|
|
1315
1394
|
* A hook that is called to load the source code.
|
|
1316
1395
|
*
|
|
@@ -1318,7 +1397,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
1318
1397
|
* @param id - The identifier of the source code.
|
|
1319
1398
|
* @returns A promise that resolves when the hook is complete.
|
|
1320
1399
|
*/
|
|
1321
|
-
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
|
|
1400
|
+
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>;
|
|
1322
1401
|
/**
|
|
1323
1402
|
* A hook that is called to resolve the identifier of the source code.
|
|
1324
1403
|
*
|
|
@@ -1368,7 +1447,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1368
1447
|
* @param id - The identifier of the source code.
|
|
1369
1448
|
* @returns A promise that resolves when the hook is complete.
|
|
1370
1449
|
*/
|
|
1371
|
-
transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
|
|
1450
|
+
transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>, "code" | "id">;
|
|
1372
1451
|
/**
|
|
1373
1452
|
* A hook that is called to load the source code.
|
|
1374
1453
|
*
|
|
@@ -1376,7 +1455,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1376
1455
|
* @param id - The identifier of the source code.
|
|
1377
1456
|
* @returns A promise that resolves when the hook is complete.
|
|
1378
1457
|
*/
|
|
1379
|
-
load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
|
|
1458
|
+
load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>, "id">;
|
|
1380
1459
|
/**
|
|
1381
1460
|
* A hook that is called to resolve the identifier of the source code.
|
|
1382
1461
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-
|
|
2
|
-
export { c as PulumiPluginBaseOptions, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from './index-
|
|
1
|
+
import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-CBY94ymB.cjs';
|
|
2
|
+
export { c as PulumiPluginBaseOptions, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from './index-CBY94ymB.cjs';
|
|
3
3
|
import '@pulumi/pulumi/automation';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,8 +11,11 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
+
import 'magic-string';
|
|
14
15
|
import 'semver';
|
|
16
|
+
import 'ts-morph';
|
|
15
17
|
import 'unplugin';
|
|
18
|
+
import '@stryke/fs/resolve';
|
|
16
19
|
import 'node:fs';
|
|
17
20
|
import '@stryke/types/tsconfig';
|
|
18
21
|
import 'typescript';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-
|
|
2
|
-
export { c as PulumiPluginBaseOptions, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from './index-
|
|
1
|
+
import { P as PulumiPluginContext, a as PulumiPluginOptions, b as Plugin } from './index-CBY94ymB.js';
|
|
2
|
+
export { c as PulumiPluginBaseOptions, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from './index-CBY94ymB.js';
|
|
3
3
|
import '@pulumi/pulumi/automation';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,8 +11,11 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
+
import 'magic-string';
|
|
14
15
|
import 'semver';
|
|
16
|
+
import 'ts-morph';
|
|
15
17
|
import 'unplugin';
|
|
18
|
+
import '@stryke/fs/resolve';
|
|
16
19
|
import 'node:fs';
|
|
17
20
|
import '@stryke/types/tsconfig';
|
|
18
21
|
import 'typescript';
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-
|
|
1
|
+
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-CBY94ymB.cjs';
|
|
2
2
|
import '@pulumi/pulumi/automation';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,8 +10,11 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
+
import 'magic-string';
|
|
13
14
|
import 'semver';
|
|
15
|
+
import 'ts-morph';
|
|
14
16
|
import 'unplugin';
|
|
17
|
+
import '@stryke/fs/resolve';
|
|
15
18
|
import 'node:fs';
|
|
16
19
|
import '@stryke/types/tsconfig';
|
|
17
20
|
import 'typescript';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-
|
|
1
|
+
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-CBY94ymB.js';
|
|
2
2
|
import '@pulumi/pulumi/automation';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,8 +10,11 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
+
import 'magic-string';
|
|
13
14
|
import 'semver';
|
|
15
|
+
import 'ts-morph';
|
|
14
16
|
import 'unplugin';
|
|
17
|
+
import '@stryke/fs/resolve';
|
|
15
18
|
import 'node:fs';
|
|
16
19
|
import '@stryke/types/tsconfig';
|
|
17
20
|
import 'typescript';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@pulumi/pulumi/automation';
|
|
2
|
-
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-
|
|
2
|
+
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-CBY94ymB.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -10,8 +10,11 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
+
import 'magic-string';
|
|
13
14
|
import 'semver';
|
|
15
|
+
import 'ts-morph';
|
|
14
16
|
import 'unplugin';
|
|
17
|
+
import '@stryke/fs/resolve';
|
|
15
18
|
import 'node:fs';
|
|
16
19
|
import '@stryke/types/tsconfig';
|
|
17
20
|
import 'typescript';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@pulumi/pulumi/automation';
|
|
2
|
-
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-
|
|
2
|
+
export { c as PulumiPluginBaseOptions, P as PulumiPluginContext, f as PulumiPluginCreateStackInlineOptions, g as PulumiPluginCreateStackLocalOptions, e as PulumiPluginCreateStackOptions, d as PulumiPluginExistingStackOptions, a as PulumiPluginOptions, j as PulumiPluginResolvedConfig, h as PulumiPluginResolvedOptions, i as PulumiPluginUserConfig, _ as __ΩPulumiPluginBaseOptions, s as __ΩPulumiPluginContext, m as __ΩPulumiPluginCreateStackInlineOptions, n as __ΩPulumiPluginCreateStackLocalOptions, l as __ΩPulumiPluginCreateStackOptions, k as __ΩPulumiPluginExistingStackOptions, o as __ΩPulumiPluginOptions, r as __ΩPulumiPluginResolvedConfig, p as __ΩPulumiPluginResolvedOptions, q as __ΩPulumiPluginUserConfig } from '../index-CBY94ymB.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -10,8 +10,11 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
+
import 'magic-string';
|
|
13
14
|
import 'semver';
|
|
15
|
+
import 'ts-morph';
|
|
14
16
|
import 'unplugin';
|
|
17
|
+
import '@stryke/fs/resolve';
|
|
15
18
|
import 'node:fs';
|
|
16
19
|
import '@stryke/types/tsconfig';
|
|
17
20
|
import 'typescript';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-pulumi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform source code to be platform agnostic using pulumi.",
|
|
6
6
|
"repository": {
|
|
@@ -99,21 +99,21 @@
|
|
|
99
99
|
"files": ["dist/**/*"],
|
|
100
100
|
"keywords": ["pulumi", "powerlines", "storm-software", "powerlines-plugin"],
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@stryke/type-checks": "^0.3.
|
|
103
|
-
"@stryke/path": "^0.
|
|
104
|
-
"@stryke/fs": "^0.
|
|
105
|
-
"@stryke/helpers": "^0.9.
|
|
106
|
-
"@stryke/types": "^0.10.
|
|
107
|
-
"@stryke/string-format": "^0.12.
|
|
102
|
+
"@stryke/type-checks": "^0.3.15",
|
|
103
|
+
"@stryke/path": "^0.20.0",
|
|
104
|
+
"@stryke/fs": "^0.33.0",
|
|
105
|
+
"@stryke/helpers": "^0.9.7",
|
|
106
|
+
"@stryke/types": "^0.10.5",
|
|
107
|
+
"@stryke/string-format": "^0.12.5",
|
|
108
108
|
"@pulumi/pulumi": "^3.208.0",
|
|
109
109
|
"defu": "^6.1.4",
|
|
110
|
-
"powerlines": "^0.
|
|
110
|
+
"powerlines": "^0.24.0",
|
|
111
111
|
"typescript": "^5.9.3"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@powerlines/nx": "^0.10.
|
|
114
|
+
"@powerlines/nx": "^0.10.28",
|
|
115
115
|
"@types/node": "^24.10.1"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": { "access": "public" },
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "73acce2067b9d81822a59cb03a4b1e7fa8873bf9"
|
|
119
119
|
}
|