diff --git a/package.json b/package.json index 4d6d00d23..2f7bebc43 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/scripts/build.js b/scripts/build.js index e525206b6..61b9efdbb 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -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 = { @@ -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;