@inkdropapp/theme-dev-helpers 0.3.6 → 0.3.7

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/bin/dev-server CHANGED
@@ -1,6 +1,16 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env bun
2
2
 
3
- SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
4
- SCRIPT_DIR="$(cd "$(dirname "${SCRIPT_PATH}")" && pwd)"
3
+ import { dirname, join } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ import { exec } from 'child_process';
6
+ import { createServer } from 'vite'
5
7
 
6
- bunx --bun vite "$SCRIPT_DIR/.."
8
+ const scriptPath = fileURLToPath(import.meta.url);
9
+ const scriptDir = dirname(scriptPath);
10
+
11
+ const server = await createServer({
12
+ root: join(scriptDir, "..")
13
+ })
14
+ await server.listen()
15
+
16
+ server.printUrls()
package/bun.lockb CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkdropapp/theme-dev-helpers",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "type": "module",
5
5
  "description": "A helper module for creating themes for Inkdrop",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "dev-server": "./bin/dev-server"
22
22
  },
23
23
  "dependencies": {
24
- "@inkdropapp/base-ui-theme": "^0.3.1",
24
+ "@inkdropapp/base-ui-theme": "^0.3.2",
25
25
  "@inkdropapp/css": "^0.4.2",
26
26
  "@vitejs/plugin-react": "^4.3.2",
27
27
  "commander": "^12.1.0",