create-warlock 1.0.3 → 1.0.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,SAQhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,SAAS,SAEhC"}
package/cjs/index.js CHANGED
@@ -1,7 +1,4 @@
1
- 'use strict';var fs=require('@mongez/fs'),commander=require('commander'),path=require('path'),url=require('url'),index=require('./commands/create-new-app/index.js');var_documentCurrentScript=typeofdocument!=='undefined'?document.currentScript:null;function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var path__namespace=/*#__PURE__*/_interopNamespace(path);const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
2
- const __dirname$1 = path__namespace.dirname(__filename$1);
1
+ 'use strict';var url=require('url'),index=require('./commands/create-new-app/index.js');var_documentCurrentScript=typeofdocument!=='undefined'?document.currentScript:null;url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
3
2
  function createApp() {
4
- const packageJson = fs.getJsonFile(path__namespace.resolve(__dirname$1, "../", "package.json"));
5
- commander.program.version(packageJson["version"]);
6
3
  index();
7
4
  }module.exports=createApp;//# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":["__filename","fileURLToPath","__dirname","path","getJsonFile","program","createNewApp"],"mappings":"omBAMA,MAAMA,YAAU,GAAGC,iBAAa,CAAC,6LAAe,CAAC,CAAC;AAElD,MAAMC,WAAS,GAAGC,eAAI,CAAC,OAAO,CAACH,YAAU,CAAC,CAAC;AAE7B,SAAU,SAAS,GAAA;AAC/B,IAAA,MAAM,WAAW,GAAQI,cAAW,CAClCD,eAAI,CAAC,OAAO,CAACD,WAAS,EAAE,KAAK,EAAE,cAAc,CAAC,CAC/C,CAAC;IAEFG,iBAAO,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;AAExC,IAAAC,KAAY,EAAE,CAAC;AACjB"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":["fileURLToPath","createNewApp"],"mappings":"2KAGmBA,iBAAa,CAAC,6LAAe,EAAE;AAEpC,SAAU,SAAS,GAAA;AAC/B,IAAAC,KAAY,EAAE,CAAC;AACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,SAQhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,SAAS,SAEhC"}
package/esm/index.js CHANGED
@@ -1,7 +1,4 @@
1
- import {getJsonFile}from'@mongez/fs';import {program}from'commander';import*as path from'path';import {fileURLToPath}from'url';import createNewApp from'./commands/create-new-app/index.js';const __filename = fileURLToPath(import.meta.url);
2
- const __dirname = path.dirname(__filename);
1
+ import {fileURLToPath}from'url';import createNewApp from'./commands/create-new-app/index.js';fileURLToPath(import.meta.url);
3
2
  function createApp() {
4
- const packageJson = getJsonFile(path.resolve(__dirname, "../", "package.json"));
5
- program.version(packageJson["version"]);
6
3
  createNewApp();
7
4
  }export{createApp as default};//# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"4LAMA,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAElD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE7B,SAAU,SAAS,GAAA;AAC/B,IAAA,MAAM,WAAW,GAAQ,WAAW,CAClC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc,CAAC,CAC/C,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;AAExC,IAAA,YAAY,EAAE,CAAC;AACjB"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"6FAGmB,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;AAEpC,SAAU,SAAS,GAAA;AAC/B,IAAA,YAAY,EAAE,CAAC;AACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-warlock",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "./esm/index.js",
5
5
  "license": "MIT",
6
6
  "type": "module",