Skip to content

Commit 1a2c38e

Browse files
committed
add debug info
1 parent 3767823 commit 1a2c38e

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

packages/nx-infra-plugin/prod/src/executors/pack-npm/executor.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const MSG_PACK_SUCCESS = 'pnpm pack completed successfully';
1313
const MSG_PACK_FAILED = 'Failed to run pnpm pack';
1414
const runExecutor = async (options, context) => {
1515
const absoluteProjectRoot = (0, path_resolver_1.resolveProjectPath)(context);
16+
console.log('🚀 ~ runExecutor ~ absoluteProjectRoot:', absoluteProjectRoot);
1617
const distDirectory = options.workingDirectory || DEFAULT_DIST_DIR;
18+
console.log('🚀 ~ runExecutor ~ distDirectory:', distDirectory);
19+
console.log('context.projectName', context.projectName);
1720
const workspaceRoot = context.root;
1821
if (!context.projectName) {
1922
(0, error_handler_1.logError)(MSG_PACK_FAILED, 'Project name is not defined in context');
@@ -22,8 +25,9 @@ const runExecutor = async (options, context) => {
2225
try {
2326
devkit_1.logger.info(`Running pnpm pack from ${absoluteProjectRoot} (packaging ${distDirectory})...`);
2427
const projectPath = path_1.default.join(workspaceRoot, 'packages', context.projectName);
25-
(0, child_process_1.execSync)(`pnpm pack ${distDirectory}`, {
26-
cwd: projectPath,
28+
console.log('🚀🚀🚀🚀 projectPath:', projectPath);
29+
(0, child_process_1.execSync)(`pnpm pack`, {
30+
cwd: path_1.default.join(workspaceRoot, 'packages', context.projectName),
2731
stdio: 'inherit',
2832
});
2933
devkit_1.logger.info(MSG_PACK_SUCCESS);

packages/nx-infra-plugin/src/executors/pack-npm/executor.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const MSG_PACK_FAILED = 'Failed to run pnpm pack';
1212

1313
const runExecutor: PromiseExecutor<PackNpmExecutorSchema> = async (options, context) => {
1414
const absoluteProjectRoot = resolveProjectPath(context);
15+
console.log('🚀 ~ runExecutor ~ absoluteProjectRoot:', absoluteProjectRoot);
1516
const distDirectory = options.workingDirectory || DEFAULT_DIST_DIR;
17+
console.log('🚀 ~ runExecutor ~ distDirectory:', distDirectory);
18+
console.log('context.projectName', context.projectName);
1619
const workspaceRoot = context.root;
1720

1821
if (!context.projectName) {
@@ -25,8 +28,10 @@ const runExecutor: PromiseExecutor<PackNpmExecutorSchema> = async (options, cont
2528

2629
const projectPath = path.join(workspaceRoot, 'packages', context.projectName);
2730

28-
execSync(`pnpm pack ${distDirectory}`, {
29-
cwd: projectPath,
31+
console.log('🚀🚀🚀🚀 projectPath:', projectPath);
32+
33+
execSync(`pnpm pack`, {
34+
cwd: path.join(workspaceRoot, 'packages', context.projectName),
3035
stdio: 'inherit',
3136
});
3237

tools/scripts/build-all.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sh.cp([path.join(BOOTSTRAP_DIR, 'css', 'bootstrap.css'), path.join(BOOTSTRAP_DIR
7878

7979
sh.exec('pnpm run all:pack-and-copy');
8080

81-
sh.exec('pnpx nx pack devextreme-react', { silent: true });
81+
sh.exec('pnpx nx pack devextreme-react', { silent: false });
8282
sh.exec('pnpx nx pack devextreme-vue', { silent: true });
8383
sh.exec(`pnpx nx pack devextreme-angular${devMode ? '' : ' --with-descriptions'}`, { silent: true });
8484

0 commit comments

Comments
 (0)