@cocojs/cli 0.0.1-alpha202511162103 → 0.0.1-alpha202511172047
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.
|
@@ -347,7 +347,7 @@ function genIndexTsx(project, iocComponents) {
|
|
|
347
347
|
}
|
|
348
348
|
function appendExport(importStatements) {
|
|
349
349
|
var pre = "";
|
|
350
|
-
var append = "\nimport { Application } from \"
|
|
350
|
+
var append = "\nimport { Application } from \"@cocojs/mvc\";\nimport applicationJson from \"./application.json\";\nexport { Application };\n\n".concat(process__namespace.env.NODE_ENV === 'test' ? "\n// \u6D4B\u8BD5\u65F6\u7531\u6D4B\u8BD5\u7528\u4F8B\u542F\u52A8Application\n" : "\nconst application = new Application(applicationJson);\napplication.start();\n ", "\n ");
|
|
351
351
|
return pre.concat(importStatements.join('\n')).concat(append);
|
|
352
352
|
}
|
|
353
353
|
|
package/dist/index.js
CHANGED