Skip to content

Commit 2c83b7a

Browse files
committed
Updated exports
1 parent c78bc4f commit 2c83b7a

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
{
22
"name": "lup-system",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "NodeJS library to retrieve system information and utilization.",
5-
"files": [
6-
"lib/**/*"
7-
],
8-
"main": "lib/index.js",
9-
"types": "lib/index.d.ts",
5+
"main": "./lib/index",
6+
"types": "./lib/index.d.ts",
7+
"files": [ "lib/**/*" ],
8+
"exports": {
9+
".": "./lib/index.js",
10+
"./cpu": "./lib/cpu.js",
11+
"./drive": "./lib/drive.js",
12+
"./gpu": "./lib/gpu.js",
13+
"./net": "./lib/net.js",
14+
"./os": "./lib/os.js",
15+
"./temperature": "./lib/temperature.js",
16+
"./utils": "./lib/utils.js"
17+
},
1018
"scripts": {
1119
"test": "jest --config jestconfig.json",
1220
"build": "tsc",

src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
export * from './cpu';
2+
export * from './drive';
3+
export * from './gpu';
4+
export * from './net';
5+
export * from './os';
6+
export * from './temperature';
7+
export * from './utils';
8+
19
import * as cpu from './cpu';
210
import * as drive from './drive';
311
import * as gpu from './gpu';
@@ -7,9 +15,9 @@ import * as temperatures from './temperature';
715
import * as utils from './utils';
816

917
/**
10-
* Utility functions for interacting with the operating system.
18+
* Utility functions for interacting with the system.
1119
*/
12-
const osUtils = {
20+
const lupSystem = {
1321
...cpu,
1422
...drive,
1523
...gpu,
@@ -18,4 +26,4 @@ const osUtils = {
1826
...temperatures,
1927
...utils,
2028
};
21-
export default osUtils;
29+
export default lupSystem;

0 commit comments

Comments
 (0)