@botpress/cli 0.0.4 → 0.0.7
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/dist/app/api-utils.js +5 -4
- package/dist/app/base.js +39 -1
- package/dist/app/errors.js +22 -19
- package/dist/app/file-paths.js +82 -0
- package/dist/app/generator/module.js +1 -1
- package/dist/app/index.js +17 -10
- package/dist/app/project.js +198 -240
- package/dist/app/user.js +5 -16
- package/dist/config.js +8 -3
- package/dist/consts.js +65 -0
- package/dist/esbuild-utils.js +89 -0
- package/dist/event-emitter.js +62 -0
- package/dist/index.js +19 -18
- package/dist/logger/base-logger.js +14 -0
- package/dist/logger/index.js +5 -5
- package/dist/path-utils.js +69 -0
- package/dist/require-utils.js +49 -0
- package/dist/update-notif.js +47 -0
- package/dist/watcher.js +68 -0
- package/dist/worker/child-entrypoint.js +4 -2
- package/dist/worker/child-wrapper.js +109 -0
- package/dist/worker/keyboard.js +48 -0
- package/dist/worker/messaging.js +39 -0
- package/dist/worker/worker-state.js +70 -0
- package/dist/worker/worker.js +87 -0
- package/package.json +4 -2
- package/readme.md +0 -1
- package/dist/index.js.map +0 -7
- package/dist/init.js.map +0 -7
package/dist/init.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/init.ts"],
|
|
4
|
-
"sourcesContent": ["import Module from 'module'\nimport pathlib from 'path'\n\nconst DEFAULT_DIRNAME = '.botpress'\n\nconst getOutDir = () => {\n const { BP_OUTDIR } = process.env\n if (!BP_OUTDIR) {\n return pathlib.join(process.cwd(), DEFAULT_DIRNAME)\n }\n if (pathlib.isAbsolute(BP_OUTDIR)) {\n return BP_OUTDIR\n }\n return pathlib.join(process.cwd(), BP_OUTDIR)\n}\n\nconst outDirPath = getOutDir()\nconst outDirName = pathlib.basename(outDirPath)\nconst originalRequire = Module.prototype.require\n\nconst rewire = function (this: NodeRequire, mod: string) {\n const importParts = mod.split('/')\n\n if (importParts[0] === outDirName) {\n const newMod = importParts.slice(1).join('/')\n const fullpath = pathlib.join(outDirPath, newMod)\n return originalRequire.apply(this, [fullpath])\n }\n\n return originalRequire.apply(this, [mod])\n} as NodeRequire\n\nModule.prototype.require = rewire\n"],
|
|
5
|
-
"mappings": "wdAAA,IAAAA,EAAmB,qBACnBC,EAAoB,mBAEdC,EAAkB,YAElBC,EAAY,IAAM,CACtB,GAAM,CAAE,UAAAC,CAAU,EAAI,QAAQ,IAC9B,OAAKA,EAGD,EAAAC,QAAQ,WAAWD,CAAS,EACvBA,EAEF,EAAAC,QAAQ,KAAK,QAAQ,IAAI,EAAGD,CAAS,EALnC,EAAAC,QAAQ,KAAK,QAAQ,IAAI,EAAGH,CAAe,CAMtD,EAEMI,EAAaH,EAAU,EACvBI,EAAa,EAAAF,QAAQ,SAASC,CAAU,EACxCE,EAAkB,EAAAC,QAAO,UAAU,QAEnCC,EAAS,SAA6BC,EAAa,CACvD,IAAMC,EAAcD,EAAI,MAAM,GAAG,EAEjC,GAAIC,EAAY,KAAOL,EAAY,CACjC,IAAMM,EAASD,EAAY,MAAM,CAAC,EAAE,KAAK,GAAG,EACtCE,EAAW,EAAAT,QAAQ,KAAKC,EAAYO,CAAM,EAChD,OAAOL,EAAgB,MAAM,KAAM,CAACM,CAAQ,CAAC,CAC/C,CAEA,OAAON,EAAgB,MAAM,KAAM,CAACG,CAAG,CAAC,CAC1C,EAEA,EAAAF,QAAO,UAAU,QAAUC",
|
|
6
|
-
"names": ["import_module", "import_path", "DEFAULT_DIRNAME", "getOutDir", "BP_OUTDIR", "pathlib", "outDirPath", "outDirName", "originalRequire", "Module", "rewire", "mod", "importParts", "newMod", "fullpath"]
|
|
7
|
-
}
|