From 153e3f28c314781bac311cc1866ad8e025eef0a9 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Thu, 12 Sep 2024 13:59:38 +0100 Subject: [PATCH] more debugging --- rollup.config.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index cb2655ff9d9..b4b9626758a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,5 +1,5 @@ import { dirname, parse, resolve, join } from 'node:path'; -import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs'; +import { existsSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'; import { createRequire } from 'node:module'; import { fileURLToPath } from 'node:url'; import glob from 'glob'; @@ -514,6 +514,15 @@ function packageMeta() { }) ); console.log(`updating packageMeta: ${JSON.stringify(renamedModules, null, 2)}`); + console.log( + `glob sync opts ${JSON.stringify({ + cwd: new URL('dist/packages', import.meta.url).pathname, + ignore: ['shared-chunks/**'], + nodir: true, + })}` + ); + console.log(`readdir ${readdirSync('dist/packages/')}`); + console.log(`cwd ${process.cwd()}`); return { name: 'package-meta', buildEnd(error) {