create-cubing-app 0.35.6-rc12 → 0.35.6-rc13

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.
@@ -3,7 +3,6 @@ import { exec } from "child_process";
3
3
  import { mkdir, writeFile } from "fs/promises";
4
4
  import { join } from "path";
5
5
  import { exit, stderr } from "process";
6
- import { default as validate } from "validate-npm-package-name";
7
6
 
8
7
  function execPromise(cmd, options) {
9
8
  return new Promise((resolve, reject) => {
@@ -34,6 +33,8 @@ const packageName = process.argv[2];
34
33
  if (!packageName) {
35
34
  badPackageName();
36
35
  }
36
+
37
+ const validate = (await import("validate-npm-package-name")).default;
37
38
  const validationResults = validate(packageName);
38
39
  if (!validationResults.validForNewPackages) {
39
40
  badPackageName();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cubing-app",
3
- "version": "0.35.6-rc12",
3
+ "version": "0.35.6-rc13",
4
4
  "type": "module",
5
5
  "bin": "./bin/create-cubing-app.js",
6
6
  "scripts": {