ciiu-arl 1.0.3 → 1.0.4

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 CHANGED
@@ -13,20 +13,9 @@ npm install ciiu-arl
13
13
  ### Import the JSON data
14
14
 
15
15
  ```js
16
- import riskClassification from "ciiu-arl/risk-classification.json" with { type: "json" };
16
+ import {riskClassification, type RiskClassification} from "ciiu-arl";
17
17
  ```
18
18
 
19
- ### Import the TypeScript types
20
-
21
- ```ts
22
- import type { RiskClassification } from "ciiu-arl/types";
23
- ```
24
-
25
- ## Files exported
26
-
27
- - `risk-classification.json`: The risk classification dataset
28
- - `types.ts`: TypeScript types for the dataset
29
-
30
19
  ## License
31
20
 
32
21
  ISC
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import type { RiskClassification } from "./types";
2
+
3
+ declare const riskClassification: RiskClassification[];
4
+ export { riskClassification };
5
+ export type { RiskClassification };
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import data from "./risk-classification.json" with { type: "json" };
2
+ export const riskClassification = data;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "ciiu-arl",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Exports risk-classification.json as a package.",
5
- "main": "risk-classification.json",
6
5
  "scripts": {
7
6
  "build": "node risk-classification.ts"
8
7
  },
9
8
  "files": [
10
- "risk-classification.json",
11
- "types.ts"
9
+ "index.js",
10
+ "index.d.ts"
12
11
  ],
12
+ "types": "index.d.ts",
13
+ "main": "index.js",
13
14
  "keywords": [
14
15
  "ciiu",
15
16
  "arl",