@astral/pack 1.8.0 → 1.9.0

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.
@@ -8,7 +8,7 @@ const node_child_process_1 = require("node:child_process");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const services_1 = require("../../services");
10
10
  const compileTs = (config) => {
11
- const { tsConfigName, format, projectPath, distPath } = config;
11
+ const { tsConfigName, format, projectPath, distPath, distDirName } = config;
12
12
  const promises = [];
13
13
  const execTs = (childProcess) => {
14
14
  const { promise, resolve, reject } = Promise.withResolvers();
@@ -47,6 +47,10 @@ const compileTs = (config) => {
47
47
  // Вывод логов в консоль
48
48
  { stdio: 'inherit' }));
49
49
  }
50
+ // Замена path alias на относительные пути (если есть)
51
+ execTs((0, node_child_process_1.spawn)('tsc-alias', ['-p', path_1.default.join(projectPath, tsConfigName), '--outDir', distDirName],
52
+ // Вывод логов в консоль
53
+ { stdio: 'inherit' }));
50
54
  return Promise.all(promises).then(() => {
51
55
  services_1.logger.success('Сборка прошла успешно');
52
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/pack",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "main": "./index.js",
5
5
  "bin": {
6
6
  "pack": "bin.js"
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@astral/validations": "^4.24.1",
13
- "recursive-copy": "^2.0.14",
14
- "semantic-release": "^24.2.3",
15
13
  "@semantic-release/changelog": "~6.0.3",
16
14
  "@semantic-release/commit-analyzer": "~13.0.1",
17
15
  "@semantic-release/gitlab": "~13.2.3",
18
- "@semantic-release/release-notes-generator": "~14.0.3"
16
+ "@semantic-release/release-notes-generator": "~14.0.3",
17
+ "recursive-copy": "^2.0.14",
18
+ "semantic-release": "~24.2.3"
19
19
  },
20
20
  "optionalDependencies": {
21
21
  "typescript": "*"