create-cubing-app 0.35.6-rc11 → 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.
package/Makefile ADDED
@@ -0,0 +1,3 @@
1
+ .PHONY: publish
2
+ publish:
3
+ npm publish
@@ -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) => {
@@ -17,7 +16,9 @@ function execPromise(cmd, options) {
17
16
  });
18
17
  }
19
18
 
20
- await execPromise("npm install validate-npm-package-name");
19
+ await execPromise("npm install validate-npm-package-name", {
20
+ cwd: new URL(".", import.meta.url),
21
+ });
21
22
 
22
23
  function badPackageName() {
23
24
  stderr.write(`Please specify a valid project name!
@@ -32,6 +33,8 @@ const packageName = process.argv[2];
32
33
  if (!packageName) {
33
34
  badPackageName();
34
35
  }
36
+
37
+ const validate = (await import("validate-npm-package-name")).default;
35
38
  const validationResults = validate(packageName);
36
39
  if (!validationResults.validForNewPackages) {
37
40
  badPackageName();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cubing-app",
3
- "version": "0.35.6-rc11",
3
+ "version": "0.35.6-rc13",
4
4
  "type": "module",
5
5
  "bin": "./bin/create-cubing-app.js",
6
6
  "scripts": {