nanoshell 1.7.9 → 1.8.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # NanoShell ⚡ (`nanoshell@1.7.9`)
1
+ # NanoShell ⚡ (`nanoshell@1.8.1`)
2
2
 
3
3
  > **Created & Engineered by Suman Biswas** 👑
4
4
  > *Hyper-lightweight 17MB RAM, 120 FPS Native WebKit Desktop Application Framework & Runtime Engine*
@@ -38,11 +38,14 @@ npm run package
38
38
 
39
39
  ---
40
40
 
41
- ## 🆕 What's New in v1.7.9
41
+ ## 🆕 What's New in v1.8.1
42
+
43
+ ### 📦 Auto-Generated `package.json` for Scaffolded Apps
44
+ - **Seamless `npm start` & `npm run package`**: Newly scaffolded projects automatically include a standard `package.json` preconfigured with `npm start`, `npm run build`, and `npm run package` scripts out of the box.
42
45
 
43
46
  ### 🌟 Seamless `npm create nanoshell` & Interactive Prompt
44
47
  - **Word-for-Word Scaffolding**: Published `create-nanoshell` package so `npm create nanoshell` works natively without 404 errors or stale `npx` cache issues.
45
- - **Interactive Scaffolding**: Running `npm create nanoshell` without arguments now interactively prompts for the project name.
48
+ - **Interactive Scaffolding**: Running `npm create nanoshell` without arguments interactively prompts for the project name.
46
49
 
47
50
  ### 🪟 Pure Native Win32 Windowing & Full API Control
48
51
  - **Zero Windowing Wrappers**: Fully excised AppCore window wrappers to give direct, un-sandboxed `HWND` control to native Zig code.
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: nanoshell-desktop-framework
3
3
  description: Build ultra-fast, 120 FPS, 17MB RAM native desktop applications using HTML, CSS, JS, and Zig with the NanoShell runtime engine (nanoshell) created by Suman Biswas. Includes Per-Monitor DPI V2 crisp scaling and Win32 direct windowing.
4
4
  ---
5
5
 
6
- # NanoShell Native Desktop Framework Skill Guide (`nanoshell@1.7.9`)
6
+ # NanoShell Native Desktop Framework Skill Guide (`nanoshell@1.8.1`)
7
7
 
8
8
  **Created & Engineered by Suman Biswas**
9
9
 
@@ -28,7 +28,7 @@ npm run package # Build binary and generate Windows Inno Setup i
28
28
 
29
29
  ---
30
30
 
31
- ## ⚡ v1.7.9 Engine Architecture & High-DPI Rules for AI Agents
31
+ ## ⚡ v1.8.1 Engine Architecture & High-DPI Rules for AI Agents
32
32
 
33
33
  1. **Pure Win32 Subsystem**: Runs on `.Windows` subsystem with zero background CMD console windows.
34
34
  2. **Per-Monitor DPI V2 Aware**: Integrates `DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2`. Window client sizes are automatically scaled physically (`physical_size = logical_size * dpi_scale`).
package/cli/index.js CHANGED
@@ -158,6 +158,26 @@ if (args.length > 0 && !args[0].startsWith('-') && args[0] !== 'package' && args
158
158
  }
159
159
  }
160
160
  }
161
+
162
+ // Generate package.json inside scaffolded app directory for npm start / npm run package
163
+ const appPkgPath = path.join(targetDir, 'package.json');
164
+ if (!fs.existsSync(appPkgPath)) {
165
+ const appPkgContent = {
166
+ name: targetDirName,
167
+ version: "1.0.0",
168
+ description: "A NanoShell native desktop application",
169
+ main: "app/index.html",
170
+ scripts: {
171
+ "start": "npx nanoshell start",
172
+ "build": "npx nanoshell build",
173
+ "package": "npx nanoshell package"
174
+ },
175
+ keywords: ["nanoshell", "desktop", "native"],
176
+ author: "",
177
+ license: "MIT"
178
+ };
179
+ fs.writeFileSync(appPkgPath, JSON.stringify(appPkgContent, null, 2));
180
+ }
161
181
  }
162
182
  }
163
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoshell",
3
- "version": "1.7.9",
3
+ "version": "1.8.1",
4
4
  "description": "Hyper-lightweight native desktop application framework. 17MB RAM, 120 FPS, pure Win32 DPI-aware windowing with WebKit rendering. No Electron. Created by Suman Biswas.",
5
5
  "main": "cli/index.js",
6
6
  "bin": {
Binary file