Skip to main content

packagejson

Guidelines for package.json files in packages

Jump to install

Source facts

Repository
forcedotcom/apex-language-support
Last source activity
June 23, 2026 at 22:16
Detected SKILL.md language
English
Stars
11
Forks
3

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
packageJson
description
Guidelines for package.json files in packages
## Name any package that's not an npm package should be named @salesforce/foo (whether it actually published to npm or not) the package that publishes the vscode extension is named apex-language-server-extension don't rename packages, but do tell the user when stuff doesn't match the rules ## types on an extension, you only need a `types` prop if your extension will be an extensionDependency of some other extension. probably not necessary for non-extension packages. ## browser only for web-enabled extensions. Must point to a bundled dist file ## npm packages packages that publish to npm should have a `files` property in the package.json ## scripts See [wireit skill](../wireit/SKILL.md) ## dependencies use `*` as the version for anything that's another package in this repo ## devDependencies packages should not duplicate devDependencies that exist at the top level of the repo. ## vscode "contributes" ### Tips - anything in `commands` will appear in command palette. If you don't want that, you have to `never` or use some `when` under commandPalette - commands need a unique ID, 2 extensions contributing the same config will produce a UI warning - never create a "default:true" boolean configuration (it's hard to override user/workspace)
View on GitHub