mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-25 21:26:01 +00:00
Add complete multiplayer system with real-time gameplay, challenge system, and 50x50 board option
This commit is contained in:
12
node_modules/simple-update-notifier/src/isNpmOrYarn.ts
generated
vendored
Normal file
12
node_modules/simple-update-notifier/src/isNpmOrYarn.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import process from 'process';
|
||||
|
||||
const packageJson = process.env.npm_package_json;
|
||||
const userAgent = process.env.npm_config_user_agent;
|
||||
const isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));
|
||||
const isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));
|
||||
|
||||
const isNpm = isNpm6 || isNpm7;
|
||||
const isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));
|
||||
const isNpmOrYarn = isNpm || isYarn;
|
||||
|
||||
export default isNpmOrYarn;
|
||||
Reference in New Issue
Block a user