@nmakarov/cli-toolkit 0.7.0 → 0.7.2
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/index.cjs +1695 -1638
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1669 -1618
- package/dist/index.js.map +1 -1
- package/dist/init.cjs +1100 -0
- package/dist/init.cjs.map +1 -1
- package/dist/init.js +1104 -0
- package/dist/init.js.map +1 -1
- package/dist/screen.cjs +2 -2
- package/package.json +1 -1
package/dist/screen.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var __esmCache = {};
|
|
4
4
|
var __loadESMSync = function(moduleName) {
|
|
5
5
|
if (!__esmCache[moduleName]) {
|
|
6
|
-
throw new Error(`ESM module "${moduleName}" not loaded. Please call the load() function first: const
|
|
6
|
+
throw new Error(`ESM module "${moduleName}" not loaded. Please call the load() function first: const toolkit = require("@nmakarov/cli-toolkit"); await toolkit.load();`);
|
|
7
7
|
}
|
|
8
8
|
return __esmCache[moduleName];
|
|
9
9
|
};
|
|
@@ -161,7 +161,7 @@ function ScreenFooter({ lines, textStyle }) {
|
|
|
161
161
|
// src/screen/list-components.ts
|
|
162
162
|
var import_react2 = null; // Will be set by load();
|
|
163
163
|
var import_ink2 = null; // Will be set by load();
|
|
164
|
-
// Removed: intermediate assignment
|
|
164
|
+
// Removed: intermediate assignment - code will access import variable directly
|
|
165
165
|
function MultiColumnListComponent({ items, ctx, selectedIndexRef }) {
|
|
166
166
|
const [, forceUpdate] = (0, import_react2.useState)({});
|
|
167
167
|
const termWidth = (process.stdout.columns || 80) - 8;
|