(options, action)
| 120 | }) |
| 121 | |
| 122 | def 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 | |
| 143 | def subdir_files(options, path, dest, action): |
| 144 | source_path, _ = mkpaths(options, path, dest) |
no test coverage detected
searching dependent graphs…