@ca-plant-list/ca-plant-list 0.4.16 → 0.4.18
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/data/exceptions.json +5 -3
- package/data/synonyms.csv +129 -122
- package/data/taxa.csv +26 -25
- package/data/text/Brassica-nigra.md +1 -0
- package/data/text/Brassica-rapa.md +1 -0
- package/data/text/Oxalis-oregana.footer.md +3 -0
- package/data/text/Oxalis-smalliana.footer.md +3 -0
- package/data/text/Rumex-acetosella.md +1 -0
- package/lib/csv.js +2 -1
- package/lib/exceptions.js +3 -0
- package/lib/index.d.ts +9 -0
- package/lib/taxon.js +6 -0
- package/lib/tools/jepsoneflora.js +117 -152
- package/lib/tools/rpi.js +1 -1
- package/lib/tools/syncsv.js +41 -0
- package/package.json +7 -7
- package/scripts/cpl-tools.js +2 -11
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ca-plant-list/ca-plant-list",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.18",
|
4
4
|
"description": "Tools to create Jekyll files for a website listing plants in an area of California.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -35,26 +35,26 @@
|
|
35
35
|
"inatobsphotos": "scripts/inatobsphotos.js"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
+
"@htmltools/scrape": "^0.1.0",
|
38
39
|
"archiver": "^5.3.1",
|
39
40
|
"cli-progress": "^3.12.0",
|
40
41
|
"commander": "^12.1.0",
|
41
|
-
"csv-parse": "^5.
|
42
|
-
"csv-stringify": "^6.5.
|
42
|
+
"csv-parse": "^5.6.0",
|
43
|
+
"csv-stringify": "^6.5.2",
|
44
|
+
"exceljs": "^4.4.0",
|
43
45
|
"image-size": "^1.1.1",
|
44
46
|
"markdown-it": "^14.1.0",
|
45
47
|
"sharp": "^0.33.5",
|
46
48
|
"svgo-ll": "^5.6.0",
|
47
|
-
"unzipper": "^0.
|
49
|
+
"unzipper": "^0.12.3"
|
48
50
|
},
|
49
51
|
"devDependencies": {
|
50
|
-
"@htmltools/scrape": "^0.1.0",
|
51
52
|
"@types/archiver": "^6.0.2",
|
52
53
|
"@types/cli-progress": "^3.11.6",
|
53
54
|
"@types/markdown-it": "^14.1.2",
|
54
|
-
"@types/node": "^22.10.
|
55
|
+
"@types/node": "^22.10.3",
|
55
56
|
"@types/unzipper": "^0.10.9",
|
56
57
|
"eslint": "^9.17.0",
|
57
|
-
"exceljs": "^4.4.0",
|
58
58
|
"prettier": "^3.4.2",
|
59
59
|
"typescript": "^5.7.2"
|
60
60
|
}
|
package/scripts/cpl-tools.js
CHANGED
@@ -85,13 +85,8 @@ async function build(program, options) {
|
|
85
85
|
);
|
86
86
|
break;
|
87
87
|
case TOOLS.JEPSON_EFLORA: {
|
88
|
-
const eflora = new JepsonEFlora(
|
89
|
-
|
90
|
-
taxa,
|
91
|
-
errorLog,
|
92
|
-
options.efLognotes,
|
93
|
-
);
|
94
|
-
await eflora.analyze(exceptions);
|
88
|
+
const eflora = new JepsonEFlora(TOOLS_DATA_DIR, taxa, errorLog);
|
89
|
+
await eflora.analyze(exceptions, !!options.update);
|
95
90
|
break;
|
96
91
|
}
|
97
92
|
case TOOLS.JEPSON_FAM:
|
@@ -130,10 +125,6 @@ program.option(
|
|
130
125
|
"The name of the file containing the iNaturalist taxa. Can be used for testing on a smaller subset of the iNaturalist data.",
|
131
126
|
"inat_taxa.csv",
|
132
127
|
);
|
133
|
-
program.option(
|
134
|
-
"--ef-lognotes",
|
135
|
-
"When running the jepson-eflora tool, include eFlora notes, invalid names, etc. in the log file.",
|
136
|
-
);
|
137
128
|
program.option("--update", "Update taxa.csv to remove errors if possible.");
|
138
129
|
program.addHelpText(
|
139
130
|
"after",
|