@vlandoss/vland 0.3.0 → 0.3.1-git-9887d65.0

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.
@@ -1,7 +1,7 @@
1
1
  // @generated by @usage-spec/commander from Commander.js metadata
2
2
  name vland
3
3
  bin vland
4
- version "0.3.0"
4
+ version "0.3.1-git-9887d65.0"
5
5
  usage "[options] [command]"
6
6
  flag --usage help="print KDL spec for this CLI (https://kdl.dev)"
7
7
  cmd completion help="print shell completion script (usage)" {
package/dist/run.mjs CHANGED
@@ -250,7 +250,7 @@ async function applyRootPackage(rootDir, options) {
250
250
  const PACKAGE_MANAGER = "pnpm";
251
251
  const NPM_NAME_RE = /^(?:@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;
252
252
  function validateProjectName(name) {
253
- if (!name || !name.trim()) return "Name is required.";
253
+ if (!name?.trim()) return "Name is required.";
254
254
  if (/\s/.test(name)) return "Name cannot contain whitespace.";
255
255
  if (name.startsWith(".") || name.startsWith("/") || name.startsWith("\\")) return "Name cannot start with '.', '/' or '\\'.";
256
256
  if (name.includes("..")) return "Name cannot contain '..'.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/vland",
3
- "version": "0.3.0",
3
+ "version": "0.3.1-git-9887d65.0",
4
4
  "description": "The CLI to init a new project in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/vland/cli#readme",
6
6
  "bugs": {
@@ -35,8 +35,8 @@
35
35
  "commander": "14.0.3",
36
36
  "giget": "2.0.0",
37
37
  "nypm": "0.6.0",
38
- "@vlandoss/loggy": "0.2.1",
39
- "@vlandoss/clibuddy": "0.6.1"
38
+ "@vlandoss/clibuddy": "0.6.1",
39
+ "@vlandoss/loggy": "0.2.2-git-9887d65.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -45,7 +45,7 @@
45
45
  "node": ">=20.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@rrlab/tsdown-config": "^0.0.1"
48
+ "@rrlab/tsdown-config": "^0.1.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown && pnpm build:kdl",
@@ -23,7 +23,7 @@ const PACKAGE_MANAGER = "pnpm" as const;
23
23
  const NPM_NAME_RE = /^(?:@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;
24
24
 
25
25
  function validateProjectName(name: string): string | undefined {
26
- if (!name || !name.trim()) return "Name is required.";
26
+ if (!name?.trim()) return "Name is required.";
27
27
  if (/\s/.test(name)) return "Name cannot contain whitespace.";
28
28
  if (name.startsWith(".") || name.startsWith("/") || name.startsWith("\\")) {
29
29
  return "Name cannot start with '.', '/' or '\\'.";