Skip to content

Commit 6cb60c9

Browse files
authoredNov 3, 2023
Update generate-readmes script to typescript, update content wording, and regenerate all readmes (Turfjs#2528)
* Fix generate-docs to work with tsx (add extension, fix a few TS errors). monorepolint rule changed to reflect ts file extension. Add node to eslint env config so editors can find definitions of node variables (such as __dirname) used in scripts. * Change project root docs target to use tsx and generate-docs.ts. Tighten up gnerates-docs.ts folder globbing - was inadvertently matching when my working parent directory was named something like ~/code/turf-docs-test/... interpreting docs-test as a package name. Reworded readme postfix content to be clearer on the different ways of installing. Updated a few links from http to https. * Result of running yarn docs from the project root with the previously committed changes. * Applying recently merged changes (from PR Turfjs#2523) to this new module.
1 parent c11f76b commit 6cb60c9

File tree

231 files changed

+1072
-1838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+1072
-1838
lines changed
 

‎.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
ecmaVersion: 6,
2626
sourceType: "module",
2727
},
28-
env: { es6: true },
28+
env: { es6: true, node: true },
2929
rules,
3030

3131
overrides: [

‎.monorepolint.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ module.exports = {
164164
{
165165
options: {
166166
scripts: {
167-
docs: "tsx ../../scripts/generate-readmes",
167+
docs: "tsx ../../scripts/generate-readmes.ts",
168168
test: "npm-run-all --npm-path npm test:*",
169169
},
170170
},

0 commit comments

Comments
 (0)
Please sign in to comment.