@powerlines/engine 0.0.5 → 0.0.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/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('./chunk-C0xms8kb.cjs');
3
- const require_execution_context = require('./execution-context-BxANz9k2.cjs');
3
+ const require_execution_context = require('./execution-context-CsXwiYub.cjs');
4
4
  const require_tsconfig = require('./tsconfig-DeyWQC2N.cjs');
5
5
  const require_ts_morph = require('./ts-morph-BaLPVAdB.cjs');
6
6
  let _stryke_fs_resolve = require("@stryke/fs/resolve");
@@ -362,11 +362,11 @@ async function installDependencies(context) {
362
362
  //#endregion
363
363
  //#region src/_internal/helpers/resolve-tsconfig.ts
364
364
  function getTsconfigDtsPath(context) {
365
- return (0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_file_path_fns.relativePath)((0, _stryke_path_join_paths.joinPaths)(context.config.cwd, context.config.root), (0, _stryke_path_file_path_fns.findFilePath)(context.typesPath)), (0, _stryke_path_file_path_fns.findFileName)(context.typesPath));
365
+ 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));
366
366
  }
367
367
  async function resolveTsconfigChanges(context) {
368
- const tsconfig = require_tsconfig.getParsedTypeScriptConfig(context.config.cwd, context.config.root, context.config.tsconfig, context.config.tsconfigRaw);
369
- const tsconfigJson = await (0, _stryke_fs_json.readJsonFile)(require_tsconfig.getTsconfigFilePath(context.config.cwd, context.config.root, context.config.tsconfig));
368
+ const tsconfig = require_tsconfig.getParsedTypeScriptConfig(context.options.cwd, context.options.root, context.config.tsconfig, context.config.tsconfigRaw);
369
+ const tsconfigJson = await (0, _stryke_fs_json.readJsonFile)(require_tsconfig.getTsconfigFilePath(context.options.cwd, context.options.root, context.config.tsconfig));
370
370
  tsconfigJson.compilerOptions ??= {};
371
371
  if (context.config.output.dts !== false) {
372
372
  const dtsRelativePath = getTsconfigDtsPath(context);
package/dist/api.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-CNhvjS52.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-Bs1yg85h.mjs";
2
2
  import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-Cstsoprg.mjs";
3
3
  import { n as createProgram } from "./ts-morph-D0CaA37w.mjs";
4
4
  import { resolvePackage } from "@stryke/fs/resolve";
@@ -357,11 +357,11 @@ async function installDependencies(context) {
357
357
  //#endregion
358
358
  //#region src/_internal/helpers/resolve-tsconfig.ts
359
359
  function getTsconfigDtsPath(context) {
360
- return joinPaths(relativePath(joinPaths(context.config.cwd, context.config.root), findFilePath(context.typesPath)), findFileName(context.typesPath));
360
+ return joinPaths(relativePath(joinPaths(context.options.cwd, context.options.root), findFilePath(context.typesPath)), findFileName(context.typesPath));
361
361
  }
362
362
  async function resolveTsconfigChanges(context) {
363
- const tsconfig = getParsedTypeScriptConfig(context.config.cwd, context.config.root, context.config.tsconfig, context.config.tsconfigRaw);
364
- const tsconfigJson = await readJsonFile(getTsconfigFilePath(context.config.cwd, context.config.root, context.config.tsconfig));
363
+ const tsconfig = getParsedTypeScriptConfig(context.options.cwd, context.options.root, context.config.tsconfig, context.config.tsconfigRaw);
364
+ const tsconfigJson = await readJsonFile(getTsconfigFilePath(context.options.cwd, context.options.root, context.config.tsconfig));
365
365
  tsconfigJson.compilerOptions ??= {};
366
366
  if (context.config.output.dts !== false) {
367
367
  const dtsRelativePath = getTsconfigDtsPath(context);