Skip to content

Commit 3d2df08

Browse files
committed
feat(index): allow single entry point in main.js
1 parent 182070c commit 3d2df08

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Diff for: index.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { DataChunks } from './distiller.js';
2+
import { tTest, zTestTwoProportions, samplingError, linearRegression, roundToConfidenceInterval } from './stats.js';
3+
import { isKnownFacet, scoreCWV, toHumanReadable, toISOStringWithTimezone, scoreBundle, computeConversionRate, reclassifyConsent, reclassifyAcquisition, reclassifyEnter, addCalculatedProps } from './utils.js';
4+
5+
const utils = {
6+
isKnownFacet,
7+
scoreCWV,
8+
toHumanReadable,
9+
toISOStringWithTimezone,
10+
scoreBundle,
11+
computeConversionRate,
12+
reclassifyConsent,
13+
reclassifyAcquisition,
14+
reclassifyEnter,
15+
addCalculatedProps,
16+
};
17+
const stats = {
18+
zTestTwoProportions,
19+
linearRegression,
20+
roundToConfidenceInterval,
21+
tTest,
22+
samplingError,
23+
};
24+
25+
export { DataChunks, utils, stats };

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"semantic-release-dry": "semantic-release --dry-run --branches $CI_BRANCH"
1111
},
1212
"type": "module",
13+
"main": "index.js",
1314
"license": "Apache-2.0",
1415
"devDependencies": {
1516
"@semantic-release/changelog": "6.0.3",

0 commit comments

Comments
 (0)