© 2026 Hedgehog Software, LLC
always-auth=true @gsap:registry=https://npm.greensock.com //npm.greensock.com/:_authToken=${GSAP_TOKEN}
role?: ('member' | 'plus' | 'premium' | 'business')
import { fileURLToPath } from 'node:url' import fs from 'node:fs' import path from 'node:path' import { execSync } from 'node:child_process' export const installGsap = (role: undefined) => { const moduleRoot = fileURLToPath(new URL('../', import.meta.url)) const packageJsonPath = path.join(moduleRoot, 'package.json') const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')) const newGsapVersion = role === undefined ? 'gsap@latest' : `gsap@npm:@gsap/${role}` if (packageJson.dependencies?.gsap !== newGsapVersion) { execSync(`npm install ${newGsapVersion}`, { cwd: moduleRoot, stdio: 'inherit' }) } }