@ynor/ynor 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/bin/ynor.js +9 -6
  2. package/package.json +1 -1
package/bin/ynor.js CHANGED
@@ -144,14 +144,17 @@ if (import.meta.hot) {
144
144
 
145
145
  // Create App.ynor
146
146
  console.log(chalk.dim(' 📄 Creating src/App.ynor...'));
147
- const appYnor = `<script>
148
- let count = 0;
147
+ const appYnor = `<!-- src/App.ynor -->
148
+ <script>
149
+ this.count = 0;
149
150
 
150
- function increment() {
151
- count++;
152
- console.log('Count:', count);
151
+ this.increment = function() {
152
+ this.count++;
153
+ console.log('Count:', this.count);
153
154
  this._update();
154
- }
155
+ };
156
+
157
+ console.log('🔧 App.ynor loaded with this.count:', this.count);
155
158
  </script>
156
159
 
157
160
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynor/ynor",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "⚡ Lightweight next-gen JS extension framework like Svelte",
5
5
  "type": "module",
6
6
  "main": "./src/lib/core/index.js",