Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Mar 7, 2024
1 parent d6aceb5 commit 4e96bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@salesforce/core",
"version": "6.7.0",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
"main": "lib/exported",
"types": "lib/exported.d.ts",
"main": "lib/index",
"types": "lib/index.d.ts",
"license": "BSD-3-Clause",
"engines": {
"node": ">=18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { Generator } = require('npm-dts');
const fs = require('fs');

new Generator({
output: 'lib/exported.d.ts',
output: 'lib/index.d.ts',
}).generate();

const sharedConfig = {
Expand All @@ -33,7 +33,7 @@ const sharedConfig = {
platform: 'node', // for CJS
outdir: 'lib',
});
const filePath = 'lib/exported.js';
const filePath = 'lib/index.js';
let bundledEntryPoint = fs.readFileSync(filePath, 'utf8');

const searchString = /\$\{process\.cwd\(\)\}\$\{require\("path"\)\.sep\}lib/g;
Expand Down

0 comments on commit 4e96bf0

Please sign in to comment.