Skip to content

Commit

Permalink
reinitialize project with unitynpminit#experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanstudioroot committed Feb 18, 2020
1 parent ba20dcf commit 681087b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 39 deletions.
38 changes: 1 addition & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1 @@
{
"name": "rootgen-unitycsharp",
"version": "1.0.0",
"description": "NPM package for RootGen, a procedural hex based map generator for Unity3D.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node scripts/postinstall.js rootgen-unitycsharp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jordanstudioroot/RootGen-UnityCSharp-NPM.git"
},
"keywords": [
"Root"
],
"files": [
"scripts",
"Assets/Runtime",
"Assets/rootgen-unitycsharp",
"scripts"
],
"author": "Jordan Nelson",
"license": "MIT",
"bugs": {
"url": "https://github.com/jordanstudioroot/RootGen-UnityCSharp/issues"
},
"homepage": "https://github.com/jordanstudioroot/RootGen-UnityCSharp-NPM#readme",
"dependencies": {
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"rootevents-unitycsharp": "github:jordanstudioroot/RootEvents-UnityCSharp-NPM",
"rootextensions-unitycsharp": "github:jordanstudioroot/RootExtensions-UnityCSharp",
"rootutils-unitycsharp": "github:jordanstudioroot/RootUtils-UnityCSharp",
"studiorootgames.root-events": "github:jordanstudioroot/RootEvents-UnityCSharp-NPM"
}
}
{"name":"rootgen-unitycsharp","version":"1.0.0","description":"NPM package for RootGen, a procedural hex based map generator for Unity3D.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","postinstall":"node scripts/postinstall.js rootgen-unitycsharp"},"repository":{"type":"git","url":"git+https://github.com/jordanstudioroot/RootGen-UnityCSharp-NPM.git"},"keywords":["Root"],"files":["scripts","Assets/Runtime","Assets/rootgen-unitycsharp","scripts","scripts"],"author":"Jordan Nelson","license":"MIT","bugs":{"url":"https://github.com/jordanstudioroot/RootGen-UnityCSharp/issues"},"homepage":"https://github.com/jordanstudioroot/RootGen-UnityCSharp-NPM#readme","dependencies":{"mkdirp":"^0.5.1","ncp":"^2.0.0","rootevents-unitycsharp":"github:jordanstudioroot/RootEvents-UnityCSharp-NPM","rootextensions-unitycsharp":"github:jordanstudioroot/RootExtensions-UnityCSharp","rootutils-unitycsharp":"github:jordanstudioroot/RootUtils-UnityCSharp","studiorootgames.root-events":"github:jordanstudioroot/RootEvents-UnityCSharp-NPM"}}
5 changes: 3 additions & 2 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ var path = require('path');
var ncp = require('ncp');

let packageName = '';
let args = process.argv.slice(2);

// Package name
if (argv[2]) {
packageName = argv[2];
if (args[0]) {
packageName = args[0];
}
else {
throw new Error("Missing arg to postinstall.js in package.json.");
Expand Down

0 comments on commit 681087b

Please sign in to comment.