Skip to content

Commit a0e8754

Browse files
committed
Enable declarationMap for better DX
1 parent d022366 commit a0e8754

12 files changed

+23
-20
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-plugin-system-info"
3-
version = "2.0.0-beta.1"
3+
version = "2.0.1"
44
authors = ["You"]
55
edition = "2021"
66
rust-version = "1.70"

dist-js/api.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ export declare function refreshCpu(): Promise<void>;
2323
export declare function refreshProcesses(): Promise<void>;
2424
export declare function debugCommand(): Promise<unknown>;
2525
export declare function batteries(): Promise<Battery>;
26+
//# sourceMappingURL=api.d.ts.map

dist-js/api.d.ts.map

+1
Original file line numberDiff line numberDiff line change

dist-js/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from "./api";
22
export * from "./type";
3+
//# sourceMappingURL=index.d.ts.map

dist-js/index.d.ts.map

+1
Original file line numberDiff line numberDiff line change

dist-js/type.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -942,3 +942,4 @@ export declare const AllSystemInfo: z.ZodObject<{
942942
}[];
943943
}>;
944944
export type AllSystemInfo = z.infer<typeof AllSystemInfo>;
945+
//# sourceMappingURL=type.d.ts.map

dist-js/type.d.ts.map

+1
Original file line numberDiff line numberDiff line change

examples/sveltekit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"dependencies": {
3030
"@tauri-apps/api": "2.0.0-beta.13",
31-
"tauri-plugin-system-info-api": "file:../.."
31+
"tauri-plugin-system-info-api": "link:../../"
3232
},
3333
"type": "module"
3434
}

examples/sveltekit/pnpm-lock.yaml

+2-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"name": "tauri-plugin-system-info-api",
3-
"version": "2.0.0-beta.1",
4-
"author": "You",
5-
"description": "",
3+
"version": "2.0.1",
4+
"author": "Huakun",
5+
"description": "System Info Plugin for Tauri Apps",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/HuakunShen/tauri-plugin-system-info.git"
9+
},
610
"type": "module",
711
"types": "./dist-js/index.d.ts",
812
"main": "./dist-js/index.cjs",
@@ -14,6 +18,7 @@
1418
},
1519
"files": [
1620
"dist-js",
21+
"guest-js",
1722
"README.md"
1823
],
1924
"scripts": {

rollup.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ export default {
1818
}
1919
],
2020
plugins: [
21-
typescript({
22-
declaration: true,
23-
declarationDir: `./${pkg.exports.import.split('/')[0]}`
24-
})
21+
typescript()
2522
],
2623
external: [
2724
/^@tauri-apps\/api/,

tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"strict": true,
88
"noUnusedLocals": true,
99
"noImplicitAny": true,
10-
"noEmit": true
10+
"noEmit": true,
11+
"declaration": true,
12+
"declarationMap": true,
13+
"outDir": "dist-js",
1114
},
1215
"include": ["guest-js/*.ts"],
1316
"exclude": ["dist-js", "node_modules"]

0 commit comments

Comments
 (0)