@alstar/create 0.0.0-beta.2 → 0.0.0-beta.4

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/main.js CHANGED
@@ -9,7 +9,6 @@ import {
9
9
  isCancel,
10
10
  cancel,
11
11
  } from '@clack/prompts'
12
- import { execSync } from 'node:child_process'
13
12
  import path from 'node:path'
14
13
  import fs from 'node:fs/promises'
15
14
 
@@ -70,16 +69,9 @@ if (!(await directoryExists(fullpath))) {
70
69
 
71
70
  s.stop(`Created project in ${path.join(projectDir, projectName)}`)
72
71
 
73
- const s2 = spinner()
74
-
75
- s2.start('Installing dependencies')
76
-
77
- execSync(`cd ${fullpath} && pnpm install`)
78
-
79
- s2.stop('Installed dependencies')
80
-
81
72
  log.info(`Next step:
82
73
  cd ${path.join(projectDir, projectName)}
74
+ pnpm install
83
75
  pnpm dev`)
84
76
 
85
77
  outro(`Done!`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alstar/create",
3
- "version": "0.0.0-beta.2",
3
+ "version": "0.0.0-beta.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create": "main.js"
@@ -12,6 +12,6 @@
12
12
  "@clack/prompts": "^0.11.0"
13
13
  },
14
14
  "scripts": {
15
- "dev": "node --watch main.js"
15
+ "cli:dev": "node --watch main.js"
16
16
  }
17
17
  }
@@ -1,5 +1,4 @@
1
- import { html } from 'hono/html'
2
- import { type HtmlEscapedString } from 'hono/utils/html'
1
+ import { html, type HtmlEscapedString } from '@alstar/studio'
3
2
 
4
3
  export default (
5
4
  content: string | HtmlEscapedString | Promise<HtmlEscapedString>
@@ -12,7 +12,7 @@ section.welcome {
12
12
  margin-bottom: 0;
13
13
 
14
14
  color: #333;
15
- font-family: 15px;
15
+ font-size: 15px;
16
16
 
17
17
  a {
18
18
  color: dodgerblue;
@@ -1,4 +1,4 @@
1
- import { html } from 'hono/html'
1
+ import { html } from '@alstar/studio'
2
2
 
3
3
  export default () => {
4
4
  return html`
@@ -2,15 +2,14 @@
2
2
  "name": "alstar-app",
3
3
  "type": "module",
4
4
  "scripts": {
5
- "dev": "node --watch index.ts",
6
- "start": "node index.ts"
5
+ "dev": "pnpx tsx --watch index.ts",
6
+ "start": "pnpx tsx index.ts"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/node": "^24.1.0"
10
10
  },
11
11
  "dependencies": {
12
12
  "@alstar/studio": "latest",
13
- "@alstar/refresher": "latest",
14
- "hono": "^4.8.12"
13
+ "@alstar/refresher": "latest"
15
14
  }
16
15
  }
@@ -1,4 +1,6 @@
1
- import SiteLayout from "../components/SiteLayout";
2
- import Welcome from "../components/Welcome/Welcome";
1
+ import { defineEntry } from '@alstar/studio'
3
2
 
4
- export default () => SiteLayout(Welcome())
3
+ import SiteLayout from '../components/SiteLayout.ts'
4
+ import Welcome from '../components/Welcome/Welcome.ts'
5
+
6
+ export default defineEntry(() => SiteLayout(Welcome()))
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "exclude": ["/template"]
4
+ }