Skip to content

Commit b158cbe

Browse files
dyladanmayurkale22
andcommitted
chore: add version script to all packages (#651)
* chore: add version script to all packages * chore: remove hard coded version string * chore: move version update script to root * chore: add version:update to package.json Co-authored-by: Mayur Kale <[email protected]>
1 parent 3d9b822 commit b158cbe

File tree

62 files changed

+560
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+560
-93
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"fix": "lerna run fix",
1111
"postinstall": "yarn run bootstrap",
1212
"precompile": "tsc --version",
13+
"version:update": "lerna run version:update",
1314
"compile": "lerna run compile",
1415
"test": "lerna run test",
1516
"test:browser": "lerna run test:browser",

packages/opentelemetry-base/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"clean": "rimraf build/*",
1414
"check": "gts check",
1515
"precompile": "tsc --version",
16-
"compile": "tsc -p .",
16+
"version:update": "node ../../scripts/version-update.js",
17+
"compile": "npm run version:update && tsc -p .",
1718
"fix": "gts fix",
1819
"prepare": "npm run compile"
1920
},

packages/opentelemetry-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"compile": "npm run version:update && tsc -p .",
2424
"fix": "gts fix",
2525
"prepare": "npm run compile",
26-
"version:update": "node scripts/version-update.js",
26+
"version:update": "node ../../scripts/version-update.js",
2727
"watch": "tsc -w"
2828
},
2929
"keywords": [

packages/opentelemetry-core/scripts/version-update.js

-47
This file was deleted.

packages/opentelemetry-core/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export * from './common/ConsoleLogger';
1818
export * from './common/NoopLogger';
1919
export * from './common/time';
2020
export * from './common/types';
21-
export * from './common/version';
21+
export * from './version';
2222
export * from './context/propagation/B3Format';
2323
export * from './context/propagation/BinaryTraceContext';
2424
export * from './context/propagation/HttpTraceContext';
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-exporter-collector/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tdd:browser": "karma start",
2222
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts' --exclude 'test/browser/**/*.ts'",
2323
"test:browser": "nyc karma start --single-run",
24-
"version:update": "node scripts/version-update.js",
24+
"version:update": "node ../../scripts/version-update.js",
2525
"watch": "tsc -w"
2626
},
2727
"keywords": [

packages/opentelemetry-exporter-jaeger/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"clean": "rimraf build/*",
1313
"check": "gts check",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-exporter-prometheus/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"clean": "rimraf build/*",
1313
"check": "gts check",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-exporter-zipkin/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"check": "gts check",
1313
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-metrics/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"clean": "rimraf build/*",
1313
"check": "gts check",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-node/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"clean": "rimraf build/*",
1313
"check": "gts check",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-plugin-dns/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"check": "gts check",
1313
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
16-
"fix": "gts fix",
17-
"prepare": "npm run compile"
15+
"prepare": "npm run compile",
16+
"version:update": "node ../../scripts/version-update.js",
17+
"compile": "npm run version:update && tsc -p .",
18+
"fix": "gts fix"
1819
},
1920
"keywords": [
2021
"opentelemetry",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-plugin-document-load/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"check": "gts check",
1111
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
1212
"precompile": "tsc --version",
13-
"compile": "tsc -p .",
13+
"version:update": "node ../../scripts/version-update.js",
14+
"compile": "npm run version:update && tsc -p .",
1415
"fix": "gts fix",
1516
"prepare": "npm run compile",
1617
"tdd": "karma start",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-plugin-grpc/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"check": "gts check",
1313
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-plugin-http/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"check": "gts check",
1313
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*!
2+
* Copyright 2019, OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// this is autogenerated file, see scripts/version-update.js
18+
export const VERSION = '0.3.1';

packages/opentelemetry-plugin-http2/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"clean": "rimraf build/*",
1313
"check": "gts check",
1414
"precompile": "tsc --version",
15-
"compile": "tsc -p .",
15+
"version:update": "node ../../scripts/version-update.js",
16+
"compile": "npm run version:update && tsc -p .",
1617
"fix": "gts fix",
1718
"prepare": "npm run compile"
1819
},

0 commit comments

Comments
 (0)