Skip to content

Commit

Permalink
Merge pull request #92 from JupiterOne/yarn2npm
Browse files Browse the repository at this point in the history
script to migrate yarn to npm
  • Loading branch information
electricgull committed Mar 29, 2023
2 parents 08a807c + aad344e commit b399756
Show file tree
Hide file tree
Showing 5 changed files with 960 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ results

results.json
bulkDelete.json

test.js
33 changes: 33 additions & 0 deletions yarn2npm/README.md
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.
Loading

0 comments on commit b399756

Please sign in to comment.