Skip to content

Commit ccb876e

Browse files
committed
feat: Add link:yarn script
1 parent a9b8935 commit ccb876e

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
@@ -59,6 +59,7 @@
5959
"build:esm": "tsc -p tsconfig.esm.json",
6060
"build:watch": "rollup --config --watch",
6161
"clean": "rimraf dist coverage .rpt2_cache build",
62+
"link:yarn": "yarn link",
6263
"lint": "run-s lint:prettier lint:tslint",
6364
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
6465
"lint:tslint": "tslint -t stylish -p .",

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build:esm": "tsc -p tsconfig.esm.json",
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/hub/package.json

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

packages/minimal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"build:esm": "tsc -p tsconfig.esm.json",
3636
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3737
"clean": "rimraf dist coverage",
38+
"link:yarn": "yarn link",
3839
"lint": "run-s lint:prettier lint:tslint",
3940
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
4041
"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
@@ -27,6 +27,7 @@
2727
"build:es5": "tsc -p tsconfig.build.json",
2828
"build:esm": "tsc -p tsconfig.esm.json",
2929
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
30+
"link:yarn": "yarn link",
3031
"lint": "run-s lint:prettier lint:tslint",
3132
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
3233
"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
@@ -31,6 +31,7 @@
3131
"build:es5": "tsc -p tsconfig.build.json",
3232
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3333
"clean": "rimraf dist esm coverage *.js *.js.map *.d.ts",
34+
"link:yarn": "yarn link",
3435
"lint": "run-s lint:prettier lint:tslint",
3536
"lint:prettier": "prettier-check \"{src,test}/**/*.ts\"",
3637
"lint:tslint": "tslint -t stylish -p .",

0 commit comments

Comments
 (0)