pulse-rb 1.3.1 → 1.3.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.
@@ -3,12 +3,14 @@
3
3
  -- Docs: footagesus.github.io/treehub-web/docs/windui
4
4
  -- Version: 1.6.64-fix (pinned)
5
5
 
6
- -- Executor loadstring() environments are sandboxed — _G is NOT shared between chunks.
7
- -- The compiler passes the bundle table (_P) as an argument so we can propagate all
8
- -- runtime globals into this chunk's own environment before any adapter code runs.
6
+ -- Executor loadstring() environments are sandboxed — each chunk has its OWN environment
7
+ -- table, separate from _G. Global reads in this chunk go through getfenv(1), not _G.
8
+ -- The compiler passes the bundle table (_P) as an argument; we write every key into
9
+ -- this chunk's own environment so names like "Pulse" resolve correctly below.
9
10
  local _P = ...
10
11
  if type(_P) == "table" then
11
- for _k, _v in pairs(_P) do _G[_k] = _v end
12
+ local _env = (getfenv and getfenv(1)) or _ENV or _G
13
+ for _k, _v in pairs(_P) do _env[_k] = _v end
12
14
  end
13
15
 
14
16
  local _WINDUI_URL = "https://github.com/Footagesus/WindUI/releases/download/1.6.64-fix/main.lua"
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ var RB_VERSION, RB_HOME, IRONBREW2_DIR, IRONBREW2_REPO, ALWAYS_EXCLUDE, VALID_UI
56
56
  var init_constants = __esm({
57
57
  "src/constants.ts"() {
58
58
  init_cjs_shims();
59
- RB_VERSION = "1.3.1";
59
+ RB_VERSION = "1.3.2";
60
60
  RB_HOME = path.join(os.homedir(), ".rb");
61
61
  path.join(RB_HOME, "bin");
62
62
  IRONBREW2_DIR = path.join(RB_HOME, "ironbrew2");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-rb",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "rb CLI — Pulse framework build tool for Roblox script projects",
5
5
  "bin": {
6
6
  "rb": "./bin/rb.js"
@@ -33,13 +33,15 @@
33
33
  "zod": "^4.4.3"
34
34
  },
35
35
  "devDependencies": {
36
+ "@rbxts/types": "^1.0.924",
36
37
  "@types/fs-extra": "^11.0.4",
37
38
  "@types/luaparse": "^0.2.9",
38
39
  "@types/node": "^22.0.0",
39
40
  "tsup": "^8.3.0",
40
41
  "tsx": "^4.19.0",
41
42
  "typescript": "^5.8.3",
42
- "vitest": "^2.1.0"
43
+ "vitest": "^2.1.0",
44
+ "@rb-pulse/core": "1.3.2"
43
45
  },
44
46
  "engines": {
45
47
  "node": ">=18.0.0"
@@ -1,13 +1,12 @@
1
1
  // Pulse layout — configures the script window.
2
2
  // Based on Next.js root layout convention.
3
- // uiLibrary: 'windui' | 'linoria'
4
3
 
5
4
  export default {
6
5
  title: '{NAME}',
7
6
  author: '',
8
7
  toggleKey: 'RightControl',
9
8
  size: [850, 560] as [number, number],
10
- uiLibrary: 'windui' as 'windui' | 'linoria',
9
+ uiLibrary: 'windui' as const,
11
10
  theme: 'Indigo',
12
11
  icon: 'code-2',
13
12
  folder: '{NAME}',
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "strict": true,
4
+ "noEmit": true,
5
+ "skipLibCheck": true,
6
+ "target": "ESNext",
7
+ "moduleResolution": "bundler",
8
+ "types": ["@rb-pulse/core"]
9
+ },
10
+ "include": ["*.ts"]
11
+ }