Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Added update-name-gh-package.js to ui package. (#7652)
Browse files Browse the repository at this point in the history
* Added update-name-gh-package.js to ui package.

* update xrui name

---------

Co-authored-by: HexaField <[email protected]>
  • Loading branch information
barankyle and HexaField authored Mar 1, 2023
1 parent 7e6cb93 commit f111c57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/ui/scripts/update-name-gh-package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const fs = require('fs');

(() => {
const packageContents = JSON.parse(fs.readFileSync('./package.json').toString());
packageContents.name = '@XRFoundation/ui';
fs.writeFileSync('./package.json', Buffer.from(JSON.stringify(packageContents)));
})();
2 changes: 1 addition & 1 deletion packages/xrui/scripts/update-name-gh-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const fs = require('fs');

(() => {
const packageContents = JSON.parse(fs.readFileSync('./package.json').toString());
packageContents.name = '@xrengine/xrui';
packageContents.name = '@XRFoundation/xrui';
fs.writeFileSync('./package.json', Buffer.from(JSON.stringify(packageContents)));
})();

0 comments on commit f111c57

Please sign in to comment.