create-peachy 0.0.10 → 0.0.11

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/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { mkdir, readFile, readdir, stat, writeFile } from "node:fs/promises";
3
- import { intro, log, outro, spinner, text } from "@clack/prompts";
4
3
  import { dirname, resolve } from "node:path";
4
+ import { intro, log, outro, spinner, text } from "@clack/prompts";
5
5
  import h from "handlebars";
6
6
 
7
7
  //#region package.json
8
- var version = "0.0.10";
8
+ var version = "0.0.11";
9
9
 
10
10
  //#endregion
11
11
  //#region src/index.ts
@@ -15,7 +15,7 @@ const name = await text({
15
15
  message: "What is the name of your project?",
16
16
  placeholder: "peachy-app",
17
17
  validate: (value) => {
18
- if (!value.match(/^@?[a-z0-9-\/]+$/)) return "project name must be lowercase and contain only letters, numbers, and dashes";
18
+ if (!value?.match(/^@?[a-z0-9-/]+$/)) return "project name must be lowercase and contain only letters, numbers, and dashes";
19
19
  }
20
20
  });
21
21
  const safeName = name.replace(/^@/, "").replaceAll(/\//g, "-");
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "create-peachy",
3
- "version": "0.0.10",
4
- "type": "module",
3
+ "version": "0.0.11",
5
4
  "description": "Bootstrap a peachy application",
6
- "bin": "./dist/index.mjs",
7
- "author": "",
8
5
  "license": "MIT",
9
- "dependencies": {
10
- "@clack/prompts": "^1.0.0",
11
- "handlebars": "^4.7.8"
12
- },
6
+ "author": "",
7
+ "bin": "./dist/index.mjs",
13
8
  "files": [
14
9
  "dist",
15
10
  "template",
16
11
  "template/.gitignore"
17
12
  ],
13
+ "type": "module",
14
+ "dependencies": {
15
+ "@clack/prompts": "^1.0.0",
16
+ "handlebars": "^4.7.8"
17
+ },
18
18
  "devDependencies": {
19
19
  "@types/node": "^25.2.1",
20
20
  "rolldown": "1.0.0-rc.3",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "{{name}}",
3
- "private": true,
4
3
  "version": "1.0.0",
4
+ "private": true,
5
+ "keywords": [],
6
+ "license": "MIT",
5
7
  "scripts": {
6
8
  "dev": "peachy dev",
7
9
  "build": "peachy build"
8
10
  },
9
- "keywords": [],
10
- "license": "MIT",
11
11
  "dependencies": {
12
12
  "@peachy/core": "~{{peachyVersion}}",
13
13
  "@peachy/react": "~{{peachyVersion}}",
@@ -1,3 +1,4 @@
1
+ import Adw from "gi://Adw?version=1";
1
2
  import Gtk from "gi://Gtk?version=4.0";
2
3
 
3
4
  import { useState } from "react";
@@ -1,13 +1,11 @@
1
- import Gio from "gi://Gio?version=2.0";
2
1
  import Adw from "gi://Adw?version=1";
2
+ import Gio from "gi://Gio?version=2.0";
3
3
 
4
4
  import { render } from "@peachy/react";
5
+
5
6
  import { Counter } from "./counter";
6
7
 
7
- const app = Adw.Application.new(
8
- "dev.peachy.{{safeName}}",
9
- Gio.ApplicationFlags.DEFAULT_FLAGS,
10
- );
8
+ const app = Adw.Application.new("dev.peachy.{{safeName}}", Gio.ApplicationFlags.DEFAULT_FLAGS);
11
9
 
12
10
  app.connect("activate", () => {
13
11
  const app_window = new Adw.ApplicationWindow({
@@ -1,3 +1,3 @@
1
1
  {
2
- "extends": "@peachy/react/tsconfig",
2
+ "extends": "@peachy/react/tsconfig"
3
3
  }