You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ Please also see [GitHub workflow](https://github.com/open-telemetry/community/bl
96
96
97
97
-[NPM](https://npmjs.com)
98
98
-[TypeScript](https://www.typescriptlang.org/)
99
-
-[lerna](https://github.com/lerna/lerna) to manage dependencies, compilations, and links between packages. Most lerna commands should be run by calling the provided npm scripts.
99
+
-[nx](https://github.com/nrwl/nx) to manage dependencies, compilations, and links between packages. Most nx commands should be run by calling the provided npm scripts.
@@ -119,6 +119,29 @@ Some tests depend on other packages to be installed, so these steps are also req
119
119
120
120
Each of these commands can also be run in individual packages, as long as the initial install and compile are done first in the root directory.
121
121
122
+
If you're going to work on a single package and want to quickly jump into its development you can make use of the `focus` script. This scritp will run
123
+
the necessary tasks to have only that package ready for development saving time. FOr example if you want to work with `@opentelemetry/resource-detector-aws`
124
+
run the following command in the root folder
125
+
126
+
```sh
127
+
npm run focus @opentelemetry/resource-detector-aws
Copy file name to clipboardExpand all lines: RELEASING.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,19 +90,14 @@ Create a pull request titled `chore: x.y.z release proposal`. The commit body sh
90
90
91
91
Merge the PR, and pull the changes locally (using the commands in the first step). Ensure that `chore: x.y.z release proposal` is the most recent commit.
92
92
93
-
## Publish all packages
93
+
## Compile all packages
94
94
95
-
Go into each directory and use`npm publish` (requires permissions) to publish the package. You can use the following script to automate this.
95
+
Go into the root folder and run`npm ci && npm run compile` to build all packages with the latest version of the code.
96
96
97
-
```bash
98
-
#!/bin/bash
97
+
## Publish all packages
99
98
100
-
fordirin$(ls packages);do
101
-
pushd packages/$dir
102
-
npm publish
103
-
popd
104
-
done
105
-
```
99
+
Use the dedicated script for publishing by running the command `node ./scripts/publish-to-npm.mjs` in the root folder. The script will
100
+
walk over all non private packages and publish the ones that has not been published yet.
106
101
107
102
Check your e-mail and make sure the number of “you’ve published this module” emails matches the number you expect.
0 commit comments