extension-create 3.1.0-next.12 → 3.1.0-next.14

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/module.js CHANGED
@@ -743,6 +743,15 @@ async function setupBuiltInTests(projectPath, projectName) {
743
743
  throw error;
744
744
  }
745
745
  }
746
+ const external_module_namespaceObject = require("module");
747
+ async function preflightOptionalDependenciesForCreate(projectPath) {
748
+ try {
749
+ const requireFromProject = (0, external_module_namespaceObject.createRequire)(external_path_namespaceObject.join(projectPath, 'package.json'));
750
+ const develop = requireFromProject('extension-develop');
751
+ const preflight = develop?.preflightOptionalDependenciesForProject;
752
+ if ('function' == typeof preflight) await preflight(projectPath, 'development');
753
+ } catch {}
754
+ }
746
755
  async function extensionCreate(projectNameInput, { cliVersion, template = 'init', install = false }) {
747
756
  if (!projectNameInput) throw new Error(noProjectName());
748
757
  if (projectNameInput.startsWith('http')) throw new Error(noUrlAllowed());
@@ -755,7 +764,10 @@ async function extensionCreate(projectNameInput, { cliVersion, template = 'init'
755
764
  template,
756
765
  cliVersion
757
766
  });
758
- if (install) await installDependencies(projectPath, projectName);
767
+ if (install) {
768
+ await installDependencies(projectPath, projectName);
769
+ await preflightOptionalDependenciesForCreate(projectPath);
770
+ }
759
771
  await writeReadmeFile(projectPath, projectName);
760
772
  await writeManifestJson(projectPath, projectName);
761
773
  await initializeGitRepository(projectPath, projectName);
@@ -0,0 +1 @@
1
+ export declare function preflightOptionalDependenciesForCreate(projectPath: string): Promise<void>;
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "name": "extension-create",
25
- "version": "3.1.0-next.12",
25
+ "version": "3.1.0-next.14",
26
26
  "description": "The standalone extension creation engine for Extension.js",
27
27
  "author": {
28
28
  "name": "Cezar Augusto",