lenix 1.0.1 β†’ 1.0.2

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 +1,48 @@
1
- # Here your module's readme goes
1
+ # lenix
2
+
3
+ Helpful modules for the software engineers
4
+
5
+ ![](https://img.shields.io/npm/d18m/lenix)
6
+ ![](https://img.shields.io/npm/v/lenix)
7
+
8
+ ## πŸ”— Depend
9
+ ```json
10
+ "lenix": "latest",
11
+ ```
12
+
13
+ ## πŸ“₯ Install
14
+ ### NPM
15
+ ```bash
16
+ npm i lenix
17
+ ```
18
+ ### PNPM
19
+ ```bash
20
+ pnpm i lenix
21
+ ```
22
+ ### BUN
23
+ ```bash
24
+ bun i lenix
25
+ ```
26
+ ### YARN
27
+ ```bash
28
+ yarn add lenix
29
+ ```
30
+
31
+ ## πŸ“š Documentation
32
+ unavailable
33
+
34
+ ## GitHub
35
+ [![](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/lenixdev/lenix)
36
+
37
+ ## πŸ—ΊοΈ Roadmap
38
+ - [ ]
39
+
40
+ ## 🧾License
41
+ ![](https://img.shields.io/npm/l/lenix)
42
+
43
+ ## πŸ“ž Support
44
+ [![](https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/users/886958797631926373)
45
+
46
+ ## πŸ’» Build with
47
+ ![](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
48
+ ![](https://img.shields.io/badge/node.js-%23007ACC.svg?style=for-the-badge&logo=node.js&logoColor=white)
package/bin/Readme.md ADDED
@@ -0,0 +1,23 @@
1
+ ## Lua Modules Setup
2
+
3
+ Auto-configure Lua to use `./lua_modules` (like `node_modules`).
4
+
5
+ ### Install
6
+ ```bash
7
+ npx lenix-lua_modules
8
+ ```
9
+
10
+ ### Usage
11
+ ```bash
12
+ # Install Lua packages
13
+ luarocks install --tree ./lua_modules inspect
14
+
15
+ # Use in code (no setup needed)
16
+ local inspect = require('inspect')
17
+ print(inspect({name = "Lenix"}))
18
+ ```
19
+
20
+ ### What it does
21
+
22
+ Adds environment variables to your shell config (`~/.zshrc` or `~/.bashrc`) to automatically change your Lua modules configurations to `./lua_modules` instead of hidden nested directories.
23
+ ```
@@ -0,0 +1,50 @@
1
+ #!/bin/bash
2
+
3
+ SHELL_CONFIG="${HOME}/.zshrc"
4
+
5
+ if [ -f "${HOME}/.bashrc" ]; then
6
+ SHELL_CONFIG="${HOME}/.bashrc"
7
+ fi
8
+
9
+ echo "===================================="
10
+ echo "Lua Modules Setup"
11
+ echo "===================================="
12
+ echo ""
13
+ echo "This script will add the following lines to: $SHELL_CONFIG"
14
+ echo ""
15
+ echo "# Lua local modules setup"
16
+ echo "eval \$(luarocks path --bin)"
17
+ echo "export LUA_PATH=\"./lua_modules/share/lua/5.4/?.lua;./lua_modules/share/lua/5.4/?/init.lua;;\""
18
+ echo "export LUA_CPATH=\"./lua_modules/lib/lua/5.4/?.so;;\""
19
+ echo ""
20
+ read -p "Continue? (y/n) " -n 1 -r
21
+ echo ""
22
+
23
+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
24
+ echo "Installation cancelled."
25
+ exit 1
26
+ fi
27
+
28
+ if grep -q "# Lua local modules setup" "$SHELL_CONFIG"; then
29
+ echo "⚠️ Already installed in $SHELL_CONFIG"
30
+ echo "Installation aborted."
31
+ exit 0
32
+ fi
33
+
34
+ echo '' >> "$SHELL_CONFIG"
35
+ echo '# Lua local modules setup' >> "$SHELL_CONFIG"
36
+ echo 'eval $(luarocks path --bin)' >> "$SHELL_CONFIG"
37
+ echo 'export LUA_PATH="./lua_modules/share/lua/5.4/?.lua;./lua_modules/share/lua/5.4/?/init.lua;;"' >> "$SHELL_CONFIG"
38
+ echo 'export LUA_CPATH="./lua_modules/lib/lua/5.4/?.so;;"' >> "$SHELL_CONFIG"
39
+
40
+ source "$SHELL_CONFIG" 2>/dev/null || true
41
+
42
+ echo ""
43
+ echo "βœ“ Setup complete!"
44
+ echo "βœ“ Added 4 lines to: $SHELL_CONFIG"
45
+ echo ""
46
+ echo "πŸ“¦ Usage:"
47
+ echo " luarocks install --tree ./lua_modules <package>"
48
+ echo ""
49
+ echo "To undo, remove lines containing '# Lua local modules setup' from $SHELL_CONFIG"
50
+ echo "Restart your terminal or run: source $SHELL_CONFIG"
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './fxmanifest';
1
+ declare const _default: {};
2
+ export default _default;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * from './fxmanifest';
1
+ export default {};
package/package.json CHANGED
@@ -1,20 +1,27 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "author": "Lenix",
6
6
  "license": "GPL-3.0",
7
7
  "keywords": [
8
- "lenix"
8
+ "lenix",
9
+ "lua",
10
+ "luarocks",
11
+ "modules"
9
12
  ],
10
13
  "repository": {
11
14
  "type": "git",
12
- "url": "https://github.com/lenixdev/npm"
15
+ "url": "git+https://github.com/lenixdev/lenix.git"
13
16
  },
14
17
  "main": "./dist/index.js",
15
18
  "types": "./dist/index.d.ts",
19
+ "bin": {
20
+ "lenix-lua-modules": "bin/lua_modules.sh"
21
+ },
16
22
  "files": [
17
- "dist"
23
+ "dist",
24
+ "bin"
18
25
  ],
19
26
  "scripts": {
20
27
  "build": "tsc -p src/fxmanifest/tsconfig.json"