@powerlines/engine 0.0.4 → 0.0.6
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/_internal/worker.cjs +4 -4
- package/dist/_internal/worker.mjs +4 -4
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +4 -4
- package/dist/api.mjs +4 -4
- package/dist/api.mjs.map +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{execution-context-CNhvjS52.mjs → execution-context-Bs1yg85h.mjs} +2 -2
- package/dist/{execution-context-CNhvjS52.mjs.map → execution-context-Bs1yg85h.mjs.map} +1 -1
- package/dist/{execution-context-BxANz9k2.cjs → execution-context-CsXwiYub.cjs} +1 -1
- package/package.json +2 -2
|
@@ -3002,7 +3002,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3002
3002
|
inlineConfig: this.config.inlineConfig ?? {},
|
|
3003
3003
|
userConfig: this.config.userConfig ?? {},
|
|
3004
3004
|
pluginConfig: this.config.pluginConfig ?? {},
|
|
3005
|
-
tsconfig: getTsconfigFilePath(this.
|
|
3005
|
+
tsconfig: getTsconfigFilePath(this.options.cwd, this.options.root, config.tsconfig || this.config.tsconfig)
|
|
3006
3006
|
}, this.options, this.#getConfigProps(config), this.#getConfigProps(this.config), {
|
|
3007
3007
|
name: this.projectJson?.name || this.packageJson?.name,
|
|
3008
3008
|
version: this.packageJson?.version,
|
|
@@ -4088,11 +4088,11 @@ async function installDependencies(context) {
|
|
|
4088
4088
|
//#endregion
|
|
4089
4089
|
//#region src/_internal/helpers/resolve-tsconfig.ts
|
|
4090
4090
|
function getTsconfigDtsPath(context) {
|
|
4091
|
-
return (0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_file_path_fns.relativePath)((0, _stryke_path_join_paths.joinPaths)(context.
|
|
4091
|
+
return (0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_file_path_fns.relativePath)((0, _stryke_path_join_paths.joinPaths)(context.options.cwd, context.options.root), (0, _stryke_path_file_path_fns.findFilePath)(context.typesPath)), (0, _stryke_path_file_path_fns.findFileName)(context.typesPath));
|
|
4092
4092
|
}
|
|
4093
4093
|
async function resolveTsconfigChanges(context) {
|
|
4094
|
-
const tsconfig = getParsedTypeScriptConfig(context.
|
|
4095
|
-
const tsconfigJson = await (0, _stryke_fs_json.readJsonFile)(getTsconfigFilePath(context.
|
|
4094
|
+
const tsconfig = getParsedTypeScriptConfig(context.options.cwd, context.options.root, context.config.tsconfig, context.config.tsconfigRaw);
|
|
4095
|
+
const tsconfigJson = await (0, _stryke_fs_json.readJsonFile)(getTsconfigFilePath(context.options.cwd, context.options.root, context.config.tsconfig));
|
|
4096
4096
|
tsconfigJson.compilerOptions ??= {};
|
|
4097
4097
|
if (context.config.output.dts !== false) {
|
|
4098
4098
|
const dtsRelativePath = getTsconfigDtsPath(context);
|
|
@@ -2969,7 +2969,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
2969
2969
|
inlineConfig: this.config.inlineConfig ?? {},
|
|
2970
2970
|
userConfig: this.config.userConfig ?? {},
|
|
2971
2971
|
pluginConfig: this.config.pluginConfig ?? {},
|
|
2972
|
-
tsconfig: getTsconfigFilePath(this.
|
|
2972
|
+
tsconfig: getTsconfigFilePath(this.options.cwd, this.options.root, config.tsconfig || this.config.tsconfig)
|
|
2973
2973
|
}, this.options, this.#getConfigProps(config), this.#getConfigProps(this.config), {
|
|
2974
2974
|
name: this.projectJson?.name || this.packageJson?.name,
|
|
2975
2975
|
version: this.packageJson?.version,
|
|
@@ -4055,11 +4055,11 @@ async function installDependencies(context) {
|
|
|
4055
4055
|
//#endregion
|
|
4056
4056
|
//#region src/_internal/helpers/resolve-tsconfig.ts
|
|
4057
4057
|
function getTsconfigDtsPath(context) {
|
|
4058
|
-
return joinPaths(relativePath(joinPaths(context.
|
|
4058
|
+
return joinPaths(relativePath(joinPaths(context.options.cwd, context.options.root), findFilePath(context.typesPath)), findFileName(context.typesPath));
|
|
4059
4059
|
}
|
|
4060
4060
|
async function resolveTsconfigChanges(context) {
|
|
4061
|
-
const tsconfig = getParsedTypeScriptConfig(context.
|
|
4062
|
-
const tsconfigJson = await readJsonFile(getTsconfigFilePath(context.
|
|
4061
|
+
const tsconfig = getParsedTypeScriptConfig(context.options.cwd, context.options.root, context.config.tsconfig, context.config.tsconfigRaw);
|
|
4062
|
+
const tsconfigJson = await readJsonFile(getTsconfigFilePath(context.options.cwd, context.options.root, context.config.tsconfig));
|
|
4063
4063
|
tsconfigJson.compilerOptions ??= {};
|
|
4064
4064
|
if (context.config.output.dts !== false) {
|
|
4065
4065
|
const dtsRelativePath = getTsconfigDtsPath(context);
|