File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ import { fileURLToPath } from 'node:url'
1010
1111const require = createRequire ( import . meta. url )
1212
13- // Use esbuild from root node_modules since registry package is zero-dependency.
14- import esbuild from '../../node_modules/esbuild/lib/main.js'
13+ // Use esbuild from node_modules.
14+ import esbuild from 'esbuild'
15+ import { createCherryPickEntry } from './cherry-pick-entries.mjs'
16+ import { createNonBarrelEntry } from './non-barrel-imports.mjs'
1517import {
1618 printError ,
1719 printFooter ,
1820 printHeader ,
1921 printSuccess ,
20- } from '../../scripts/utils/cli-helpers.mjs'
21- import { createCherryPickEntry } from './cherry-pick-entries.mjs'
22- import { createNonBarrelEntry } from './non-barrel-imports.mjs'
22+ } from './utils/helpers.mjs'
2323
2424const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
2525const rootDir = path . resolve ( __dirname , '..' )
Original file line number Diff line number Diff line change 44 */
55// eslint-disable-next-line n/no-extraneous-import
66import { build , context } from 'esbuild'
7-
8- import { printError , printSuccess } from '../../scripts/utils/cli-helpers.mjs'
97import {
108 analyzeMetafile ,
119 buildConfig ,
1210 watchConfig ,
1311} from '../.config/esbuild.config.mjs'
12+ import { printError , printSuccess } from './utils/helpers.mjs'
1413
1514const isQuiet = process . argv . includes ( '--quiet' )
1615const isVerbose = process . argv . includes ( '--verbose' )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 printFooter ,
1313 printHeader ,
1414 printSuccess ,
15- } from '../../scripts/ utils/cli- helpers.mjs'
15+ } from './ utils/helpers.mjs'
1616
1717const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
1818const distDir = path . resolve ( __dirname , '..' , 'dist' )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111 printFooter ,
1212 printHeader ,
1313 printSuccess ,
14- } from '../../scripts /utils/cli-helpers.mjs'
14+ } from './utils/cli-helpers.mjs'
1515
1616const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
1717const distDir = path . resolve ( __dirname , '..' , 'dist' )
Original file line number Diff line number Diff line change 11/**
2- * @fileoverview Simplified helpers for socket-registry scripts.
2+ * @fileoverview Simplified helpers for socket-lib scripts.
33 * These are local utilities that don't depend on dist/lib.
44 */
55
66import { promises as fs } from 'node:fs'
77
8+ // Re-export unified print functions from cli-helpers.
9+ export {
10+ printDivider ,
11+ printError ,
12+ printFooter ,
13+ printHeader ,
14+ printInfo ,
15+ printSuccess ,
16+ printWarning ,
17+ } from './cli-helpers.mjs'
18+
819// Simple logger without any dependencies on dist.
920export const logger = {
1021 info : msg => console . log ( msg ) ,
You can’t perform that action at this time.
0 commit comments