@itwin/workspace-editor 4.6.0-dev.9 → 4.7.0-dev.3

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.
@@ -6,7 +6,7 @@
6
6
  *--------------------------------------------------------------------------------------------*/
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  const fs = require("fs");
9
- const glob = require("glob");
9
+ const glob_1 = require("glob");
10
10
  const path_1 = require("path");
11
11
  const readline = require("readline");
12
12
  const Yargs = require("yargs");
@@ -153,7 +153,7 @@ async function listWorkspaceDb(args) {
153
153
  /** Add files into a WorkspaceDb. */
154
154
  async function addResource(args) {
155
155
  return editWorkspace(args, async (wsFile, args) => {
156
- glob.sync(args.files, { cwd: args.root ?? process.cwd(), nodir: true }).forEach((filePath) => {
156
+ (0, glob_1.globSync)(args.files, { cwd: args.root ?? process.cwd(), nodir: true, windowsPathsNoEscape: true }).forEach((filePath) => {
157
157
  const file = args.root ? (0, path_1.join)(args.root, filePath) : filePath;
158
158
  if (!core_backend_1.IModelJsFs.existsSync(file))
159
159
  throw new Error(`file [${file}] does not exist`);
@@ -181,7 +181,7 @@ async function addResource(args) {
181
181
  /** Replace files in a WorkspaceDb. */
182
182
  async function replaceResource(args) {
183
183
  return editWorkspace(args, async (wsFile, args) => {
184
- glob.sync(args.files, { cwd: args.root ?? process.cwd(), nodir: true }).forEach((filePath) => {
184
+ (0, glob_1.globSync)(args.files, { cwd: args.root ?? process.cwd(), nodir: true, windowsPathsNoEscape: true }).forEach((filePath) => {
185
185
  const file = args.root ? (0, path_1.join)(args.root, filePath) : filePath;
186
186
  if (!core_backend_1.IModelJsFs.existsSync(file))
187
187
  throw new Error(`file [${file}] does not exist`);
@@ -512,7 +512,7 @@ Yargs.command({
512
512
  });
513
513
  Yargs.command({
514
514
  command: "prefetchDb <dbName>",
515
- describe: false,
515
+ describe: false, // "prefetch a WorkspaceDb from a cloud container",
516
516
  handler: runCommand(preFetchWorkspaceDb),
517
517
  });
518
518
  Yargs.command({
@@ -560,7 +560,7 @@ Yargs.command({
560
560
  });
561
561
  Yargs.command({
562
562
  command: "detachWorkspace",
563
- describe: false,
563
+ describe: false, // "detach a WorkspaceContainer from the local cache",
564
564
  handler: runCommand(detachWorkspace),
565
565
  });
566
566
  Yargs.command({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@itwin/workspace-editor",
3
3
  "license": "MIT",
4
4
  "main": "lib/WorkspaceEditor.js",
5
- "version": "4.6.0-dev.9",
5
+ "version": "4.7.0-dev.3",
6
6
  "bin": {
7
7
  "WorkspaceEditor": "./lib/WorkspaceEditor.js"
8
8
  },
@@ -15,14 +15,14 @@
15
15
  "directory": "utils/workspace-editor"
16
16
  },
17
17
  "dependencies": {
18
- "glob": "^7.1.2",
18
+ "glob": "^10.3.12",
19
19
  "yargs": "^17.4.0",
20
- "@itwin/core-bentley": "4.6.0-dev.9",
21
- "@itwin/core-common": "4.6.0-dev.9",
22
- "@itwin/core-backend": "4.6.0-dev.9"
20
+ "@itwin/core-bentley": "4.7.0-dev.3",
21
+ "@itwin/core-common": "4.7.0-dev.3",
22
+ "@itwin/core-backend": "4.7.0-dev.3"
23
23
  },
24
24
  "devDependencies": {
25
- "@itwin/eslint-plugin": "4.0.0-dev.44",
25
+ "@itwin/eslint-plugin": "^4.0.2",
26
26
  "@types/chai": "4.3.1",
27
27
  "@types/mocha": "^10.0.6",
28
28
  "@types/yargs": "17.0.19",
@@ -30,8 +30,8 @@
30
30
  "eslint": "^8.44.0",
31
31
  "mocha": "^10.2.0",
32
32
  "rimraf": "^3.0.2",
33
- "typescript": "~5.0.2",
34
- "@itwin/build-tools": "4.6.0-dev.9"
33
+ "typescript": "~5.3.3",
34
+ "@itwin/build-tools": "4.7.0-dev.3"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc 1>&2",