@thedriveai/device-helper 0.0.0-stage → 0.2.0

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/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
2
  "name": "@thedriveai/device-helper",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "The Drive AI device helper: shares folders on a Mac, a PC or a NAS with the agent.",
5
+ "license": "MIT",
6
+ "homepage": "https://thedrive.ai",
7
+ "bugs": {
8
+ "email": "contact@thedrive.ai"
9
+ },
10
+ "keywords": [
11
+ "thedrive",
12
+ "the drive ai",
13
+ "device",
14
+ "nas",
15
+ "sync",
16
+ "agent"
17
+ ],
18
+ "type": "commonjs",
19
+ "main": "./dist/lib.js",
20
+ "types": "./dist/lib.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/lib.d.ts",
24
+ "default": "./dist/lib.js"
25
+ },
26
+ "./core": {
27
+ "types": "./dist/core.d.ts",
28
+ "default": "./dist/core.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "bin": {
36
+ "tdai-device": "dist/cli.js"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "dev": "tsx src/cli.ts",
43
+ "build": "npm run clean && npm run build:cli && npm run build:lib && npm run build:core",
44
+ "build:cli": "esbuild src/cli.ts --tsconfig=tsconfig.json --bundle --platform=node --target=node20 --outfile=dist/cli.js --banner:js='#!/usr/bin/env node' && tsx scripts/finishBundle.ts dist/cli.js && chmod +x dist/cli.js",
45
+ "build:lib": "esbuild src/lib.ts --tsconfig=tsconfig.json --bundle --platform=node --target=node20 --external:socket.io-client --outfile=dist/lib.js && tsx scripts/finishBundle.ts dist/lib.js && dts-bundle-generator --project tsconfig.json --no-check --export-referenced-types=false --no-banner -o dist/lib.d.ts src/lib.ts",
46
+ "build:core": "esbuild src/core.ts --tsconfig=tsconfig.json --bundle --platform=neutral --format=cjs --target=es2020 --outfile=dist/core.js && tsx scripts/finishBundle.ts dist/core.js && dts-bundle-generator --project tsconfig.json --no-check --export-referenced-types=false --no-banner -o dist/core.d.ts src/core.ts",
47
+ "test": "tsx tests/helper.test.ts && tsx tests/portable.test.ts",
48
+ "test:portable": "tsx tests/portable.test.ts",
49
+ "pack:check": "tsx scripts/packCheck.ts",
50
+ "check-code": "tsc --noEmit -p tsconfig.json",
51
+ "prepack": "npm run build",
52
+ "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""
53
+ },
54
+ "engines": {
55
+ "node": ">=20.0.0"
56
+ },
57
+ "dependencies": {
58
+ "socket.io-client": "^4.8.1"
59
+ },
60
+ "devDependencies": {
61
+ "@types/node": "^20.0.0",
62
+ "dts-bundle-generator": "^9.5.1",
63
+ "esbuild": "^0.24.0",
64
+ "tsx": "^4.0.0",
65
+ "typescript": "^5.0.0"
66
+ }
67
+ }