jetc 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/build.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const c=require("fs"),d=require("path"),{parser:e}=require("jeti"),f=d.join(process.cwd(),process.argv[2]||"./build.js");function g(){let a=null;try{const b=c.readFileSync(f,"utf8"),h="(function() {\nconst module = {exports: {}};\nlet exports = module.exports;\n"+e(b)+"\nreturn module.exports;\n})()";a=eval(h)}catch(b){console.error(b),process.exit(1)}return a&&a.default||a}require.main===module&&c.existsSync(f)&&g()();
2
+ 'use strict';const b=require("fs"),d=require("path"),{parser:e}=require("jeti"),f=d.join(process.cwd(),process.argv[2]||"./build.js");function g(){let a=null;try{const c=b.readFileSync(f,"utf8"),h="(function() {\nconst module = {exports: {}};\nlet exports = module.exports;\n"+e(c)+"\nreturn module.exports;\n})()";a=eval(h)}catch(c){console.error(c),process.exit(1)}return a&&a.default||a}require.main===module&&(b.existsSync(f)?g()():console.error("Error:",f,"not found."));
package/bin/update.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';const c=require("fs"),{execSync:d}=require("child_process");if(require.main===module)if(c.existsSync("./package.json")){var e;{let a=null;try{const b=c.readFileSync("./package.json","utf8");a=JSON.parse(b)}catch(b){console.error(b),process.exit(1)}e=a}var f=e.dependencies;if(f)for(const a in f)console.log("Updating",a,"..."),d("npm i "+a,{stdio:"inherit"}),console.log("")}else console.error("Error:","./package.json","not found.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jetc",
3
- "version": "0.5.9",
3
+ "version": "0.6.0",
4
4
  "description": "Jet.js Compiler and Server.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,8 @@
17
17
  ],
18
18
  "bin": {
19
19
  "jetc-build": "bin/build.js",
20
- "jetc-server": "bin/server.js"
20
+ "jetc-server": "bin/server.js",
21
+ "jetc-update": "bin/update.js"
21
22
  },
22
23
  "author": "Oleksandr Krayilo",
23
24
  "license": "ISC",