diff --git a/packages/realitypacks/package.json b/packages/realitypacks/package.json index cd9401679b..f516092e3d 100644 --- a/packages/realitypacks/package.json +++ b/packages/realitypacks/package.json @@ -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" } diff --git a/packages/realitypacks/scripts/update-name-gh-package.js b/packages/realitypacks/scripts/update-name-gh-package.js new file mode 100644 index 0000000000..7157359dc8 --- /dev/null +++ b/packages/realitypacks/scripts/update-name-gh-package.js @@ -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))); +})(); \ No newline at end of file