-
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.
Merge pull request #92 from JupiterOne/yarn2npm
script to migrate yarn to npm
- Loading branch information
Showing
5 changed files
with
960 additions
and
0 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 |
---|---|---|
|
@@ -8,3 +8,5 @@ results | |
|
||
results.json | ||
bulkDelete.json | ||
|
||
test.js |
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,33 @@ | ||
# 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 % cd secops-automation-examples/yarn2npm/ && npm install | ||
cameron@laptop Code % cd ../../ | ||
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. |
Oops, something went wrong.