🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@salesforce/templates

Package Overview
Dependencies
Maintainers
7
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/templates

Salesforce JS library for templates

latest
npmnpm
Version
66.7.13
Version published
Weekly downloads
352K
7.53%
Maintainers
7
Weekly downloads
 
Created
Source

salesforcedx-templates

Known Vulnerabilities License Commitizen friendly

Introduction

This repository provides:

Consumer build requirements (e.g. salesforcedx-vscode)

Repos that bundle @salesforce/templates (e.g. with esbuild) and use a templates manifest must:

  • Copy built-in templates into the bundle output before the bundle step that runs generateTemplatesManifest. The published package includes templates at lib/templates. You can copy from that path, or use the exported path:
    • getBuiltinTemplatesPath (returns the resolved path to lib/templates when not on the web platform; undefined on web).
  • Wireit / task order: Ensure the script that populates dist/templates (or your equivalent) runs before the vscode:bundle (or similar) task. Otherwise the bundle step will fail with ENOENT: no such file or directory, scandir '.../dist/templates'.

Template paths inside the package are kept short (via placeholders in lib/templates) so they stay within Windows path limits used by pack:verify.

Getting Started

If you're interested in contributing, take a look at the CONTRIBUTING guide.

If you're interested in building the library locally, take a look at the development doc.

You can find more information about commands that the related plugin provides in the commands doc.

Bump DEFAULT_API_VERSION

DEFAULT_API_VERSION is maintained in src/utils/constants.ts. Please bump the value every time there is a major release.

FAQs

Package last updated on 10 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts