sigpro 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. package/Readme.md +13 -1
  2. package/index.js +12 -6
  3. package/package.json +1 -1
package/Readme.md CHANGED
@@ -57,7 +57,17 @@ What emerged is a library that proves we've reached a turning point: the web is
57
57
  *"Stop fighting the platform. Start building with it."*
58
58
 
59
59
  ## 📦 Installation
60
- Copy sigpro.js where you want to use it.
60
+
61
+ ```
62
+ npm install sigpro
63
+ ```
64
+ or
65
+ ```
66
+ bun add sigpro
67
+ ```
68
+ or more simple:
69
+
70
+ copy "sigpro.js" file where you want to use it.
61
71
 
62
72
  ## 🎯 Philosophy
63
73
 
@@ -1542,3 +1552,5 @@ function useFetch(url) {
1542
1552
 
1543
1553
 
1544
1554
 
1555
+
1556
+
package/index.js CHANGED
@@ -1,8 +1,14 @@
1
- // This is the main entry point of the package
2
- // Directly exports your plugin from sigpro.js
1
+ // index.js
3
2
 
4
- // If your sigpro.js already exports the plugin as default, you can do:
5
- export { default } from './sigpro.js';
3
+ // 1. Re-export all named core logic (signals, effects, html, etc.)
4
+ export * from './sigpro.js';
6
5
 
7
- // Or if you prefer CommonJS:
8
- // module.exports = require('./sigpro.js');
6
+ // 2. Import and re-export the Vite Router Plugin
7
+ // This allows users to import { sigproRouter } directly from the package
8
+ import sigproRouter from './SigProRouterPlugin/vite-plugin.sigpro.js';
9
+ export { sigproRouter };
10
+
11
+ // 3. Default export for the global namespace (optional)
12
+ // Combines core logic and the router plugin into a single object
13
+ import * as sigpro from './sigpro.js';
14
+ export default { ...sigpro, sigproRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigpro",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "del": "rm node_modules/.vite/deps -r",