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

Commit

Permalink
Publishing social package to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
barankyle committed Sep 16, 2021
1 parent eaf8b5b commit 7782877
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/social/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@
"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 7782877

Please sign in to comment.