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

Commit

Permalink
Merge pull request #3316 from XRFoundation/publish-social
Browse files Browse the repository at this point in the history
Publishing social package to npm
  • Loading branch information
barankyle authored Sep 17, 2021
2 parents eaf8b5b + 71e2796 commit 68482fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/social/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"name": "@xrengine/social",
"version": "0.4.4",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/XRFoundation/XREngine.git"
},
"engines": {
"node": ">= 16.3.0"
},
"publishConfig": {
"access": "public"
},
"npmClient": "npm",
"jest": "ts-jest",
"scripts": {
"check-errors": "tsc --noemit",
"dev": "vite --host",
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=6144 vite build && cp src/server.js www/server.js",
"validate": "npm run test",
"start": "cp src/server.js www/server.js && node www/server.js"
"start": "cp src/server.js www/server.js && node www/server.js",
"update-name-gh-package": "node scripts/update-name-gh-package.js"
},
"resolutions": {
"socket.io": "4.2.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/social/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/social';
fs.writeFileSync('./package.json', Buffer.from(JSON.stringify(packageContents)));
})();

0 comments on commit 68482fb

Please sign in to comment.