dazscript-framework 1.0.19 → 1.0.21
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 +1 -1
- package/package.json +1 -1
- package/src/common/log.test.ts +8 -0
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ npx dazscript init --menu-path /MyScripts --scripts-path ./src --out-dir ./out -
|
|
|
175
175
|
| `--out-dir` | Where `build` writes `.dsa` files and copies icons |
|
|
176
176
|
| `--app-data-path` | AppData namespace for launcher fallback (`Author/Product` format) |
|
|
177
177
|
|
|
178
|
-
Builds also accept `--log-level <trace|debug|info|warn|error|off>`. This sets the minimum runtime log level for the compiled scripts.
|
|
178
|
+
Builds also accept `--log-level <trace|debug|info|warn|error|off>`. This sets the minimum runtime log level for the compiled scripts. When omitted, builds default to `debug`; use `warn` for release packages.
|
|
179
179
|
|
|
180
180
|
Use `--scripts-path ./src/scripts` when runnable files live under a subfolder; use `--scripts-path ./src` when they are at the source root.
|
|
181
181
|
|
package/package.json
CHANGED
package/src/common/log.test.ts
CHANGED
|
@@ -42,4 +42,12 @@ describe('log levels', () => {
|
|
|
42
42
|
expect(getLogLevel()).toBe('debug')
|
|
43
43
|
expect(shouldLog('debug')).toBe(true)
|
|
44
44
|
})
|
|
45
|
+
|
|
46
|
+
it('normalizes an empty build level to debug', () => {
|
|
47
|
+
setLogLevel('')
|
|
48
|
+
|
|
49
|
+
expect(getLogLevel()).toBe('debug')
|
|
50
|
+
expect(shouldLog('debug')).toBe(true)
|
|
51
|
+
expect(shouldLog('trace')).toBe(false)
|
|
52
|
+
})
|
|
45
53
|
})
|