@palmgrove/nefdb 1.0.0 → 1.0.2
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/CHANGELOG.md +13 -0
- package/README.md +18 -3
- package/dist/data/csv.cjs +1 -0
- package/dist/data/csv.d.ts +2 -0
- package/dist/data/csv.js +67 -0
- package/dist/data/json.cjs +1766 -0
- package/dist/data/json.d.ts +3 -0
- package/dist/data/json.js +1786 -0
- package/package.json +17 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@palmgrove/nefdb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Nigeria Emission Factor Database — the first open, versioned emission factor database for Nigerian operations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nigeria",
|
|
@@ -29,8 +29,17 @@
|
|
|
29
29
|
"import": "./dist/index.js",
|
|
30
30
|
"require": "./dist/index.cjs"
|
|
31
31
|
},
|
|
32
|
-
"./data/json":
|
|
33
|
-
|
|
32
|
+
"./data/json": {
|
|
33
|
+
"types": "./dist/data/json.d.ts",
|
|
34
|
+
"import": "./dist/data/json.js",
|
|
35
|
+
"require": "./dist/data/json.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./data/csv": {
|
|
38
|
+
"types": "./dist/data/csv.d.ts",
|
|
39
|
+
"import": "./dist/data/csv.js",
|
|
40
|
+
"require": "./dist/data/csv.cjs"
|
|
41
|
+
},
|
|
42
|
+
"./package.json": "./package.json"
|
|
34
43
|
},
|
|
35
44
|
"files": [
|
|
36
45
|
"dist/",
|
|
@@ -41,13 +50,16 @@
|
|
|
41
50
|
"LICENSE"
|
|
42
51
|
],
|
|
43
52
|
"scripts": {
|
|
44
|
-
"build": "bun build src/index.ts
|
|
53
|
+
"build": "bun build src/index.ts src/data/csv.ts src/data/json.ts --outdir dist --format esm --target node && bun build src/index.ts --outfile dist/index.cjs --format cjs --target node && bun run build:types",
|
|
54
|
+
"build:data": "bun run scripts/build_data_modules.ts",
|
|
55
|
+
"prebuild": "bun run build:data",
|
|
56
|
+
"pretest": "bun run build:data",
|
|
45
57
|
"build:csv": "bun run scripts/build_csv.ts",
|
|
46
58
|
"build:json": "bun run scripts/build_json.ts",
|
|
47
59
|
"build:types": "bun run scripts/build_types.ts",
|
|
48
60
|
"validate": "bun run scripts/validate.ts",
|
|
49
61
|
"test": "bun test",
|
|
50
|
-
"prepublishOnly": "bun run validate && bun run test && bun run build && bun run build:
|
|
62
|
+
"prepublishOnly": "bun run validate && bun run test && bun run build:csv && bun run build:json && bun run build:data && bun run build"
|
|
51
63
|
},
|
|
52
64
|
"devDependencies": {
|
|
53
65
|
"@types/bun": "latest",
|