Skip to content

Commit

Permalink
fix: imports should not be pulled from dist dir (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruuuuuuuce authored Sep 22, 2023
1 parent 53ddb97 commit db7abd7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"format": "eslint . --ext .ts --fix",
"dev-driver": "ts-node --prefer-ts-exts test/dev-driver.ts"
},
"main": "dist/index.js",
"main": "dist/src/index.js",
"files": [
"dist/"
"dist/src",
"dist/package.json"
],
"types": "dist/index.d.ts",
"types": "dist/src/index.d.ts",
"devDependencies": {
"@types/google-protobuf": "3.15.6",
"@types/jest": "27.0.1",
Expand Down
11 changes: 10 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import {SecurityMode} from './goodmetrics/downstream/openTelemetryClient';
import {Dimension, Metrics} from './goodmetrics/_Metrics';
import {
Dimension,
Metrics,
StringDimension,
BooleanDimension,
NumberDimension,
} from './goodmetrics/_Metrics';
import {MetricsSink} from './goodmetrics/pipeline/metricsSink';
import {
MetricsFactory,
Expand All @@ -16,4 +22,7 @@ export {
TimestampAt,
MetricsSetups,
Metrics,
StringDimension,
BooleanDimension,
NumberDimension,
};

0 comments on commit db7abd7

Please sign in to comment.