MCPcopy Index your code
hub / github.com/nodejs/node / corepack_files

Function corepack_files

tools/install.py:122–141  ·  view source on GitHub ↗
(options, action)

Source from the content-addressed store, hash-verified

120 })
121
122def corepack_files(options, action):
123 package_files(options, action, 'corepack', {
124 'corepack': 'dist/corepack.js',
125# Not the default just yet:
126# 'yarn': 'dist/yarn.js',
127# 'yarnpkg': 'dist/yarn.js',
128# 'pnpm': 'dist/pnpm.js',
129# 'pnpx': 'dist/pnpx.js',
130 })
131
132 # On z/OS, we install node-gyp for convenience, as some vendors don't have
133 # external access and may want to build native addons.
134 if sys.platform == 'zos':
135 link_path = abspath(options.install_path, 'bin/node-gyp')
136 if action == uninstall:
137 action(options, [link_path], 'bin/node-gyp')
138 elif action == install:
139 try_symlink(options, '../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', link_path)
140 else:
141 assert 0 # unhandled action type
142
143def subdir_files(options, path, dest, action):
144 source_path, _ = mkpaths(options, path, dest)

Callers 1

filesFunction · 0.85

Calls 4

package_filesFunction · 0.85
abspathFunction · 0.85
actionFunction · 0.85
try_symlinkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…