Skip to content

Commit b222e5f

Browse files
authored
chore: globby を v11 → v14 へアップデート (#1814)
globby を v11 → v14 へアップデート - <https://github.com/sindresorhus/globby/releases> - v11 → v12 のアップデートで default export から named exports に変わったため修正
1 parent b257a71 commit b222e5f

File tree

9 files changed

+79
-60
lines changed

9 files changed

+79
-60
lines changed

package-lock.json

Lines changed: 65 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"gitbook-plugin-js-console": "^3.2.0",
8181
"gitbook-plugin-page-toc-button": "^0.1.1",
8282
"gitbook-summary-to-path": "^2.0.0",
83-
"globby": "^11.0.4",
83+
"globby": "^14.1.0",
8484
"honkit": "^6.0.2",
8585
"honkit-plugin-sandpack": "^1.4.0",
8686
"js-levenshtein": "^1.1.6",

test/example-doc-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import globby from "globby";
1+
import { globbySync } from "globby";
22
import fs from "node:fs";
33
import path from "node:path";
44
import { test } from "@power-doctest/tester";
@@ -19,7 +19,7 @@ const sourceDir = path.join(__dirname, "..", "source");
1919
* Note: ESMには対応していない
2020
**/
2121
describe("example:js", function() {
22-
const files = globby.sync([
22+
const files = globbySync([
2323
`${sourceDir}/**/*-example.js`, // *-example.js
2424
`${sourceDir}/**/*.example.js`, // *.example.js
2525
`${sourceDir}/**/example/*.js`, // example/*.js

test/example-es-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import globby from "globby";
1+
import { globbySync } from "globby";
22
import path from "node:path";
33
import url from "node:url";
44

@@ -11,7 +11,7 @@ const sourceDir = path.join(__dirname, "..", "source");
1111
* Note: ESMには対応していない
1212
**/
1313
describe("example:es", function() {
14-
const esmFiles = globby.sync([
14+
const esmFiles = globbySync([
1515
`${sourceDir}/use-case/todoapp/**/*-example.js`, // *-example.js
1616
`${sourceDir}/use-case/todoapp/**/*.example.js`, // *.example.js
1717
`${sourceDir}/use-case/nodecli/**/example/**/*.js`,

test/front-matter-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import fs from "node:fs";
44
import assert from "node:assert";
55
import path from "node:path";
6-
import globby from "globby";
6+
import { globbySync } from "globby";
77
import parseFrontMatter from "front-matter";
88
import url from "node:url";
99
const __filename__ = url.fileURLToPath(import.meta.url);
1010
const __dirname = path.dirname(__filename__);
1111
const sourceDir = path.join(__dirname, "..", "source");
1212
describe("front-matter", function() {
13-
const files = globby.sync([
13+
const files = globbySync([
1414
`${sourceDir}/**/*.md`,
1515
`!${sourceDir}/**/node_modules{,/**}`,
1616
// 目次は除く

test/invalid-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { runTestCode, toStrictIfNeeded } from "./lib/testing-code.js";
22

33
import assert from "node:assert";
4-
import globby from "globby";
4+
import { globbySync } from "globby";
55
import fs from "node:fs";
66
import url from "node:url";
77
import path from "node:path";
@@ -12,7 +12,7 @@ const sourceDir = path.join(__dirname, "..", "source");
1212
* `*-invalid.js` が実行 または パースエラーとなることをテストする
1313
**/
1414
describe("invalid:js", function() {
15-
const files = globby.sync([
15+
const files = globbySync([
1616
`${sourceDir}/**/*-invalid.js`,
1717
`${sourceDir}/**/invalid/**/*.js`,
1818
`!${sourceDir}/**/node_modules{,/**}`

test/markdown-doc-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { test } from "@power-doctest/tester";
44
import { parse } from "@power-doctest/markdown";
55
import { toTestCode } from "./lib/testing-code.js";
6-
import globby from "globby";
6+
import { globbySync } from "globby";
77
import fs from "node:fs";
88
import path from "node:path";
99
import semver from "semver";
@@ -55,7 +55,7 @@ const IgnoredECMAScriptVersions = (() => {
5555
* その他詳細は CONTRIBUTING.md を読む
5656
**/
5757
describe("doctest:md", function() {
58-
const files = globby.sync([
58+
const files = globbySync([
5959
`${sourceDir}/**/*.md`,
6060
`!${sourceDir}/**/node_modules{,/**}`,
6161
`!**/OUTLINE.md`

tools/typo-finder.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// LICENSE : MIT
22
import { remark } from "remark";
3-
import globby from "globby";
3+
import { globbySync } from "globby";
44
import fs from "fs";
55
import path from "path";
66
import { selectAll } from "unist-util-select";
@@ -11,7 +11,7 @@ const sourceDir = path.join(import.meta.dirname, "..", "source");
1111
*
1212
* Find typo using levenshtein algorithm.
1313
*/
14-
const files = globby.sync([
14+
const files = globbySync([
1515
`${sourceDir}/**/*.md`,
1616
`!${sourceDir}/**/node_modules{,/**}`,
1717
`!**/OUTLINE.md`

tools/update-package-lock.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Usage: node tools/update-package-lock.mjs
33
* Description: This script updates the package-lock.json for aligned with npm version
44
*/
5-
import globby from "globby";
5+
import { globby } from "globby";
66
import { dirname, join } from "node:path";
77
import { fileURLToPath } from "node:url";
88
import { execFile } from "node:child_process";

0 commit comments

Comments
 (0)