@itwin/workspace-editor 4.6.0-dev.15 → 4.6.0-dev.16
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/lib/WorkspaceEditor.js +3 -3
- package/package.json +6 -6
package/lib/WorkspaceEditor.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*--------------------------------------------------------------------------------------------*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
const fs = require("fs");
|
|
9
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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`);
|
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.
|
|
5
|
+
"version": "4.6.0-dev.16",
|
|
6
6
|
"bin": {
|
|
7
7
|
"WorkspaceEditor": "./lib/WorkspaceEditor.js"
|
|
8
8
|
},
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"directory": "utils/workspace-editor"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"glob": "^
|
|
18
|
+
"glob": "^10.3.12",
|
|
19
19
|
"yargs": "^17.4.0",
|
|
20
|
-
"@itwin/core-bentley": "4.6.0-dev.
|
|
21
|
-
"@itwin/core-
|
|
22
|
-
"@itwin/core-
|
|
20
|
+
"@itwin/core-bentley": "4.6.0-dev.16",
|
|
21
|
+
"@itwin/core-common": "4.6.0-dev.16",
|
|
22
|
+
"@itwin/core-backend": "4.6.0-dev.16"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@itwin/eslint-plugin": "4.0.0-dev.44",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"mocha": "^10.2.0",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
33
|
"typescript": "~5.0.2",
|
|
34
|
-
"@itwin/build-tools": "4.6.0-dev.
|
|
34
|
+
"@itwin/build-tools": "4.6.0-dev.16"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc 1>&2",
|