-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Yarn to NPM script | ||
|
||
This script will convert a project from yarn to npm. | ||
|
||
## Building | ||
|
||
Install dependencies and build with: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
## Running the script | ||
|
||
You must set the following ENV vars: | ||
|
||
``` | ||
GITHUB_AUTH_TOKEN=<your token here> | ||
``` | ||
|
||
Run the script from within a temp directory | ||
|
||
``` | ||
cameron@laptop Code % git clone [email protected]:JupiterOne/secops-automation-examples.git | ||
cameron@laptop Code % mkdir tmpDir | ||
cameron@laptop Code % cd tmpDir | ||
cgriffin@cgriffin-MBP tmpDir % node ../secops-automation-examples/yarn2npm/yarn2npm.js test-aut-web-juno | ||
``` | ||
|
||
A new branch will be created in the repo specified. Log files will be stored in a yarn2npm folder. Please remove these before | ||
pushing changes to main. If there was a problem running npm install, a failure.lock will be present in the yarn2npm folder. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters