Skip to content

Commit

Permalink
chore: revert esbuild-related artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Aug 1, 2024
1 parent cc61fcb commit 54df39f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 439 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"salesforceApiVersion": "61",
"description": "Salesforce JS library for templates",
"bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
"main": "dist/src/index.js",
"main": "lib/index.js",
"author": "Salesforce",
"homepage": "https://github.com/forcedotcom/salesforcedx-templates",
"license": "BSD-3-Clause",
"files": [
"/dist",
"/lib",
"/messages"
],
"dependencies": {
Expand Down Expand Up @@ -38,7 +38,6 @@
"chai-as-promised": "^7.1.1",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"esbuild": "^0.23.0",
"eslint": "^7.27.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-salesforce": "^0.1.6",
Expand All @@ -50,7 +49,6 @@
"eslint-plugin-prettier": "^3.1.3",
"husky": "^8.0.3",
"mocha": "^10.4.0",
"npm-dts": "^1.3.12",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"pretty-quick": "^3.1.0",
Expand Down
14 changes: 5 additions & 9 deletions scripts/build-templates.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const shell = require('shelljs');

// Determine the directory based on the 'esbuild' argument
const isEsbuild = process.argv.includes('--esbuild');
const currDir = process.cwd();
const outputDir = isEsbuild ? 'dist' : 'lib';
const outputTemplatesDir = path.join(currDir, outputDir, 'templates');
const libDir = path.join(currDir, 'lib');
const libTemplatesDir = path.join(libDir, 'templates');
const srcTemplatesDir = path.join(currDir, 'src', 'templates');

if (!fs.existsSync(outputDir)) {
shell.mkdir(outputDir);
if (!fs.existsSync(libDir)) {
shell.mkdir(libDir);
}

shell.cp('-rf', srcTemplatesDir, outputTemplatesDir);
shell.cp('-rf', srcTemplatesDir, libTemplatesDir);
41 changes: 0 additions & 41 deletions scripts/esbuild.config.js

This file was deleted.

Loading

0 comments on commit 54df39f

Please sign in to comment.