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

Commit

Permalink
Adding/updating files so realitypacks can be published.
Browse files Browse the repository at this point in the history
  • Loading branch information
barankyle committed Sep 25, 2021
1 parent 08e4c7e commit fdfc16c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/realitypacks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
"type": "git",
"url": "git://github.com/XRFoundation/XREngine.git"
},
"publishConfig": {
"access": "public"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/XRFoundation/XREngine/issues"
},
"scripts": {
"update-name-gh-package": "node scripts/update-name-gh-package.js"
},
"homepage": "https://github.com/XRFoundation/XREngine#readme"
}
7 changes: 7 additions & 0 deletions packages/realitypacks/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/realitypacks';
fs.writeFileSync('./package.json', Buffer.from(JSON.stringify(packageContents)));
})();

0 comments on commit fdfc16c

Please sign in to comment.