Skip to content

Commit 05f9512

Browse files
committed
chore(core): patch publication script to include require exports
1 parent 70ffc75 commit 05f9512

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/core/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@flow-scanner/lightning-flow-scanner-core",
33
"description": "A lightweight engine for Flow metadata in Node.js, and browser environments. Assess and enhance Salesforce Flow automations for best practices, security, governor limits, and performance issues.",
4-
"version": "6.6.2",
4+
"version": "6.6.3",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",
77
"exports": {
@@ -33,7 +33,8 @@
3333
"stryker": "npm i -g @stryker-mutator/core @stryker-mutator/jest-runner && stryker run",
3434
"version:patch": "npm version patch",
3535
"version:minor": "npm version minor",
36-
"version:major": "npm version major"
36+
"version:major": "npm version major",
37+
"publish:npm": "npm run build && cd out && npm publish"
3738
},
3839
"license": "MIT",
3940
"repository": {

scripts/prepare-publish.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const publishPkg = {
1414
exports: {
1515
".": {
1616
import: "./index.js",
17+
require: "./index.js",
1718
types: "./index.d.ts"
1819
}
1920
},

0 commit comments

Comments
 (0)