Skip to content

Commit 78bb6ad

Browse files
committed
feat: Add link:yarn script
1 parent 1172611 commit 78bb6ad

File tree

11 files changed

+14
-2
lines changed

11 files changed

+14
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build:watch": "lerna run build:watch --stream --no-sort --concurrency 9999",
88
"clean": "lerna run --stream clean",
99
"fix": "lerna run --stream --concurrency 1 fix",
10+
"link:yarn": "lerna run --stream --concurrency 1 link:yarn",
1011
"lint": "lerna run --stream --concurrency 1 lint",
1112
"lint:json": "lerna run --stream --concurrency 1 lint:tslint:json",
1213
"test": "lerna run --stream --concurrency 1 --sort test",

packages/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
6161
"build:watch": "rollup --config --watch",
6262
"clean": "rimraf dist coverage .rpt2_cache build",
63+
"link:yarn": "yarn link",
6364
"lint": "run-s lint:prettier lint:tslint",
6465
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
6566
"lint:tslint": "tslint -t stylish -p .",

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3939
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
4040
"clean": "rimraf dist coverage",
41+
"link:yarn": "yarn link",
4142
"lint": "run-s lint:prettier lint:tslint",
4243
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4344
"lint:tslint": "tslint -t stylish -p .",

packages/hub/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3737
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3838
"clean": "rimraf dist coverage",
39+
"link:yarn": "yarn link",
3940
"lint": "run-s lint:prettier lint:tslint",
4041
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4142
"lint:tslint": "tslint -t stylish -p .",

packages/minimal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3737
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3838
"clean": "rimraf dist coverage",
39+
"link:yarn": "yarn link",
3940
"lint": "run-s lint:prettier lint:tslint",
4041
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4142
"lint:tslint": "tslint -t stylish -p .",

packages/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"build": "tsc -p tsconfig.build.json",
4545
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
4646
"clean": "rimraf dist coverage",
47+
"link:yarn": "yarn link",
4748
"lint": "run-s lint:prettier lint:tslint",
4849
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4950
"lint:tslint": "tslint -t stylish -p .",

packages/opentracing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3838
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3939
"clean": "rimraf dist coverage",
40+
"link:yarn": "yarn link",
4041
"lint": "run-s lint:prettier lint:tslint",
4142
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4243
"lint:tslint": "tslint -t stylish -p .",

packages/opentracing/src/span.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ export class Span extends opentracing.Span implements SpanInterface {
137137
logs: this.logs.length === 0 ? undefined : this.logs,
138138
operation: this.operation,
139139
references: this.references && this.references,
140-
span_id: this.spanContext.spanId,
140+
spanId: this.spanContext.spanId,
141141
startTime: this.startTime / 1000,
142142
tags: Object.keys(this.tags).length === 0 ? undefined : this.tags,
143-
trace_id: this.spanContext.traceId,
143+
traceId: this.spanContext.traceId,
144144
};
145145
}
146146
}

packages/types/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"build:esm:transpile": "tsc -p tsconfig.esm.json",
2929
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3030
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
31+
"link:yarn": "yarn link",
3132
"lint": "run-s lint:prettier lint:tslint",
3233
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
3334
"lint:tslint": "tslint -t stylish -p .",

packages/typescript/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"peerDependencies": {
1717
"tslint": "^5.11.0",
1818
"typescript": "^3.2.0"
19+
},
20+
"scripts": {
21+
"link:yarn": "yarn link"
1922
}
2023
}

packages/utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js",
3535
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3636
"clean": "rimraf dist coverage *.js *.js.map *.d.ts",
37+
"link:yarn": "yarn link",
3738
"lint": "run-s lint:prettier lint:tslint",
3839
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
3940
"lint:tslint": "tslint -t stylish -p .",

0 commit comments

Comments
 (0)