@workflow/builders 4.0.1-beta.36 → 4.0.1-beta.38
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/apply-swc-transform.d.ts.map +1 -1
- package/dist/apply-swc-transform.js +17 -0
- package/dist/apply-swc-transform.js.map +1 -1
- package/dist/config-helpers.d.ts +21 -0
- package/dist/config-helpers.d.ts.map +1 -1
- package/dist/config-helpers.js +50 -0
- package/dist/config-helpers.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-swc-transform.d.ts","sourceRoot":"","sources":["../src/apply-swc-transform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-swc-transform.d.ts","sourceRoot":"","sources":["../src/apply-swc-transform.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE;QACN,CAAC,gBAAgB,EAAE,MAAM,GAAG;YAC1B,CAAC,YAAY,EAAE,MAAM,GAAG;gBACtB,MAAM,EAAE,MAAM,CAAC;aAChB,CAAC;SACH,CAAC;KACH,CAAC;IACF,SAAS,CAAC,EAAE;QACV,CAAC,gBAAgB,EAAE,MAAM,GAAG;YAC1B,CAAC,YAAY,EAAE,MAAM,GAAG;gBACtB,UAAU,EAAE,MAAM,CAAC;aACpB,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAC3C,OAAO,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC,CAiED"}
|
|
@@ -2,8 +2,21 @@ import { createRequire } from 'node:module';
|
|
|
2
2
|
import { dirname } from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { transform } from '@swc/core';
|
|
5
|
+
import { getDecoratorOptionsForDirectory } from './config-helpers.js';
|
|
5
6
|
const require = createRequire(import.meta.url);
|
|
7
|
+
// Cache decorator options per directory - tsconfig doesn't change during a build
|
|
8
|
+
const decoratorOptionsCache = new Map();
|
|
9
|
+
function getDecoratorOptions() {
|
|
10
|
+
const cwd = process.cwd();
|
|
11
|
+
let cached = decoratorOptionsCache.get(cwd);
|
|
12
|
+
if (!cached) {
|
|
13
|
+
cached = getDecoratorOptionsForDirectory(cwd);
|
|
14
|
+
decoratorOptionsCache.set(cwd, cached);
|
|
15
|
+
}
|
|
16
|
+
return cached;
|
|
17
|
+
}
|
|
6
18
|
export async function applySwcTransform(filename, source, mode) {
|
|
19
|
+
const decoratorOptions = await getDecoratorOptions();
|
|
7
20
|
const swcPluginPath = require.resolve('@workflow/swc-plugin', {
|
|
8
21
|
paths: [dirname(fileURLToPath(import.meta.url))],
|
|
9
22
|
});
|
|
@@ -22,10 +35,12 @@ export async function applySwcTransform(filename, source, mode) {
|
|
|
22
35
|
? {
|
|
23
36
|
syntax: 'typescript',
|
|
24
37
|
tsx: filename.endsWith('.tsx'),
|
|
38
|
+
decorators: decoratorOptions.decorators,
|
|
25
39
|
}
|
|
26
40
|
: {
|
|
27
41
|
syntax: 'ecmascript',
|
|
28
42
|
jsx: filename.endsWith('.jsx'),
|
|
43
|
+
decorators: decoratorOptions.decorators,
|
|
29
44
|
}),
|
|
30
45
|
},
|
|
31
46
|
target: 'es2022',
|
|
@@ -38,6 +53,8 @@ export async function applySwcTransform(filename, source, mode) {
|
|
|
38
53
|
react: {
|
|
39
54
|
runtime: 'preserve',
|
|
40
55
|
},
|
|
56
|
+
legacyDecorator: decoratorOptions.legacyDecorator,
|
|
57
|
+
decoratorMetadata: decoratorOptions.decoratorMetadata,
|
|
41
58
|
},
|
|
42
59
|
},
|
|
43
60
|
// TODO: investigate proper source map support as they
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-swc-transform.js","sourceRoot":"","sources":["../src/apply-swc-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"apply-swc-transform.js","sourceRoot":"","sources":["../src/apply-swc-transform.ts"],"names":[],"mappings":"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"}
|
package/dist/config-helpers.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import type { WorkflowConfig } from './types.js';
|
|
2
|
+
export interface DecoratorOptions {
|
|
3
|
+
decorators: boolean;
|
|
4
|
+
legacyDecorator: boolean;
|
|
5
|
+
decoratorMetadata: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Reads tsconfig.json and extracts decorator-related compiler options.
|
|
9
|
+
* Returns decorator options based on experimentalDecorators and emitDecoratorMetadata settings.
|
|
10
|
+
*
|
|
11
|
+
* @param tsconfigPath - Path to tsconfig.json or jsconfig.json
|
|
12
|
+
* @returns DecoratorOptions with settings based on tsconfig compilerOptions
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDecoratorOptionsFromTsConfig(tsconfigPath: string | undefined): Promise<DecoratorOptions>;
|
|
15
|
+
/**
|
|
16
|
+
* Finds tsconfig.json in the given directory (or ancestors) and extracts decorator options.
|
|
17
|
+
* Combines tsconfig discovery with decorator option extraction for convenience.
|
|
18
|
+
*
|
|
19
|
+
* @param cwd - Directory to start searching for tsconfig.json
|
|
20
|
+
* @returns DecoratorOptions with settings based on tsconfig compilerOptions
|
|
21
|
+
*/
|
|
22
|
+
export declare function getDecoratorOptionsForDirectory(cwd: string): Promise<DecoratorOptions>;
|
|
2
23
|
/**
|
|
3
24
|
* Creates a partial configuration for builders that don't use bundle paths directly.
|
|
4
25
|
* Used by framework integrations like Nitro where the builder computes paths internally.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-helpers.d.ts","sourceRoot":"","sources":["../src/config-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-helpers.d.ts","sourceRoot":"","sources":["../src/config-helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAsB,+BAA+B,CACnD,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAgC3B;AAED;;;;;;GAMG;AACH,wBAAsB,+BAA+B,CACnD,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,gBAAgB,CAAC,CAK3B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,GAAG,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAUtC"}
|
package/dist/config-helpers.js
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
import { findUp } from 'find-up';
|
|
3
|
+
import JSON5 from 'json5';
|
|
4
|
+
/**
|
|
5
|
+
* Reads tsconfig.json and extracts decorator-related compiler options.
|
|
6
|
+
* Returns decorator options based on experimentalDecorators and emitDecoratorMetadata settings.
|
|
7
|
+
*
|
|
8
|
+
* @param tsconfigPath - Path to tsconfig.json or jsconfig.json
|
|
9
|
+
* @returns DecoratorOptions with settings based on tsconfig compilerOptions
|
|
10
|
+
*/
|
|
11
|
+
export async function getDecoratorOptionsFromTsConfig(tsconfigPath) {
|
|
12
|
+
const defaultOptions = {
|
|
13
|
+
decorators: false,
|
|
14
|
+
legacyDecorator: false,
|
|
15
|
+
decoratorMetadata: false,
|
|
16
|
+
};
|
|
17
|
+
if (!tsconfigPath) {
|
|
18
|
+
return defaultOptions;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
const content = await readFile(tsconfigPath, 'utf-8');
|
|
22
|
+
const tsconfig = JSON5.parse(content);
|
|
23
|
+
const compilerOptions = tsconfig.compilerOptions || {};
|
|
24
|
+
// Match Next.js behavior: enable decorators only when experimentalDecorators is true
|
|
25
|
+
const experimentalDecorators = compilerOptions.experimentalDecorators === true;
|
|
26
|
+
const emitDecoratorMetadata = compilerOptions.emitDecoratorMetadata === true;
|
|
27
|
+
return {
|
|
28
|
+
decorators: experimentalDecorators,
|
|
29
|
+
legacyDecorator: experimentalDecorators,
|
|
30
|
+
decoratorMetadata: experimentalDecorators && emitDecoratorMetadata,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
// If we can't read or parse the tsconfig, return defaults
|
|
35
|
+
return defaultOptions;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Finds tsconfig.json in the given directory (or ancestors) and extracts decorator options.
|
|
40
|
+
* Combines tsconfig discovery with decorator option extraction for convenience.
|
|
41
|
+
*
|
|
42
|
+
* @param cwd - Directory to start searching for tsconfig.json
|
|
43
|
+
* @returns DecoratorOptions with settings based on tsconfig compilerOptions
|
|
44
|
+
*/
|
|
45
|
+
export async function getDecoratorOptionsForDirectory(cwd) {
|
|
46
|
+
const tsconfigPath = await findUp(['tsconfig.json', 'jsconfig.json'], {
|
|
47
|
+
cwd,
|
|
48
|
+
});
|
|
49
|
+
return getDecoratorOptionsFromTsConfig(tsconfigPath);
|
|
50
|
+
}
|
|
1
51
|
/**
|
|
2
52
|
* Creates a partial configuration for builders that don't use bundle paths directly.
|
|
3
53
|
* Used by framework integrations like Nitro where the builder computes paths internally.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-helpers.js","sourceRoot":"","sources":["../src/config-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-helpers.js","sourceRoot":"","sources":["../src/config-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,YAAgC;IAEhC,MAAM,cAAc,GAAqB;QACvC,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,KAAK;KACzB,CAAC;IAEF,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,QAAQ,GACZ,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvB,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,IAAI,EAAE,CAAC;QAEvD,qFAAqF;QACrF,MAAM,sBAAsB,GAC1B,eAAe,CAAC,sBAAsB,KAAK,IAAI,CAAC;QAClD,MAAM,qBAAqB,GACzB,eAAe,CAAC,qBAAqB,KAAK,IAAI,CAAC;QAEjD,OAAO;YACL,UAAU,EAAE,sBAAsB;YAClC,eAAe,EAAE,sBAAsB;YACvC,iBAAiB,EAAE,sBAAsB,IAAI,qBAAqB;SACnE,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,0DAA0D;QAC1D,OAAO,cAAc,CAAC;IACxB,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,GAAW;IAEX,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,EAAE;QACpE,GAAG;KACJ,CAAC,CAAC;IACH,OAAO,+BAA+B,CAAC,YAAY,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAKvC;IACC,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,eAAe,EAAE,EAAE,EAAE,mCAAmC;QACxD,mBAAmB,EAAE,EAAE,EAAE,mCAAmC;QAC5D,iBAAiB,EAAE,EAAE,EAAE,mCAAmC;QAC1D,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type { WorkflowManifest } from './apply-swc-transform.js';
|
|
|
2
2
|
export { applySwcTransform } from './apply-swc-transform.js';
|
|
3
3
|
export { BaseBuilder } from './base-builder.js';
|
|
4
4
|
export { createBuildQueue } from './build-queue.js';
|
|
5
|
-
export { createBaseBuilderConfig } from './config-helpers.js';
|
|
5
|
+
export { createBaseBuilderConfig, getDecoratorOptionsForDirectory, type DecoratorOptions, } from './config-helpers.js';
|
|
6
6
|
export { STEP_QUEUE_TRIGGER, WORKFLOW_QUEUE_TRIGGER } from './constants.js';
|
|
7
7
|
export { createDiscoverEntriesPlugin } from './discover-entries-esbuild-plugin.js';
|
|
8
8
|
export { createNodeModuleErrorPlugin } from './node-module-esbuild-plugin.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { applySwcTransform } from './apply-swc-transform.js';
|
|
2
2
|
export { BaseBuilder } from './base-builder.js';
|
|
3
3
|
export { createBuildQueue } from './build-queue.js';
|
|
4
|
-
export { createBaseBuilderConfig } from './config-helpers.js';
|
|
4
|
+
export { createBaseBuilderConfig, getDecoratorOptionsForDirectory, } from './config-helpers.js';
|
|
5
5
|
export { STEP_QUEUE_TRIGGER, WORKFLOW_QUEUE_TRIGGER } from './constants.js';
|
|
6
6
|
export { createDiscoverEntriesPlugin } from './discover-entries-esbuild-plugin.js';
|
|
7
7
|
export { createNodeModuleErrorPlugin } from './node-module-esbuild-plugin.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,uBAAuB,EACvB,+BAA+B,GAEhC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAU1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/builders",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.38",
|
|
4
4
|
"description": "Shared builder infrastructure for Workflow DevKit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,10 +38,11 @@
|
|
|
38
38
|
"enhanced-resolve": "5.18.2",
|
|
39
39
|
"esbuild": "^0.25.11",
|
|
40
40
|
"find-up": "7.0.0",
|
|
41
|
+
"json5": "2.2.3",
|
|
41
42
|
"tinyglobby": "0.2.14",
|
|
42
|
-
"@workflow/
|
|
43
|
+
"@workflow/core": "4.0.1-beta.38",
|
|
43
44
|
"@workflow/errors": "4.0.1-beta.13",
|
|
44
|
-
"@workflow/
|
|
45
|
+
"@workflow/swc-plugin": "4.0.1-beta.13"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"build": "tsc",
|