File: disallow-npm.js

package info (click to toggle)
node-rollup-pluginutils 4.1.0%2B~2.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,108 kB
  • sloc: javascript: 12,296; makefile: 10
file content (7 lines) | stat: -rw-r--r-- 225 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
const agent = process.env.npm_config_user_agent;
const { error } = console;

if (!agent.startsWith('pnpm')) {
  error('\nPlease use pnpm to manage dependencies in this repository.\n  $ npm i pnpm -g\n');
  process.exit(1);
}