CLI tool for scaffolding JavaScript and TypeScript third-party libraries with modern development practices
—
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Pending
The risk profile of this skill
Update functionality for existing jslib projects, allowing seamless upgrades to the latest template version and tooling configuration.
Updates an existing jslib project to the latest CLI version and template configuration.
jslib update
jslib u
# Requirements:
# - Must be run in project root directory
# - Directory must contain jslib.json configuration file
# - Project must have been created with @js-lib/cliUsage Examples:
# Update current project
cd my-existing-project
npx @js-lib/cli update
# Will update:
# - Build configuration files
# - Package.json scripts and dependencies
# - Linting and formatting configuration
# - CI/CD workflows
# - Preserve custom source code and testsThe CLI handles project updates through the following process:
jslib.json configuration fileProjects store metadata in jslib.json to enable updates:
{
"pathname": "my-project",
"name": "My Project",
"npmname": "my-project",
"umdname": "MyProject",
"username": "johndoe",
"type": "js",
"manager": "npm",
"version": "3.0.6"
}The update process follows these steps:
jslib.json exists and is validDuring updates, the following components are refreshed:
The update process includes comprehensive error handling:
jslib.json is not foundThe update process is intelligent about preserving customizations:
Updates maintain backward compatibility: