mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-06 06:55:12 -04:00
14 lines
462 B
TypeScript
14 lines
462 B
TypeScript
import pnpm from '@pnpm/exec'
|
|
import path = require('path')
|
|
|
|
const fixtures = path.join(__dirname, 'fixtures')
|
|
|
|
run()
|
|
.then(() => console.log('Success!'))
|
|
.catch(err => console.error(err))
|
|
|
|
async function run () {
|
|
// TODO: remove --ignore-scripts. pnpm should ignore scripts when --shrinkwrap-only is used
|
|
await pnpm(['recursive', 'install', '--shrinkwrap-only', '--registry', 'http://localhost:4873/', '--ignore-scripts', '--force'], {cwd: fixtures})
|
|
}
|