@ms-cloudpack/cli 0.37.8 → 0.37.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashPackage.d.ts","sourceRoot":"","sources":["../../src/tasks/hashPackage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hashPackage.d.ts","sourceRoot":"","sources":["../../src/tasks/hashPackage.ts"],"names":[],"mappings":"AASA,wBAAsB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,CAAC,CAAC;CACzB,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlB"}
|
package/lib/tasks/hashPackage.js
CHANGED
|
@@ -3,6 +3,7 @@ import { existsSync } from 'fs';
|
|
|
3
3
|
import { hash } from 'glob-hasher';
|
|
4
4
|
import objectHash from 'object-hash';
|
|
5
5
|
import path from 'path';
|
|
6
|
+
import { performance } from 'perf_hooks';
|
|
6
7
|
const excludeNodeModules = '!**/node_modules/**';
|
|
7
8
|
export async function hashPackage(options) {
|
|
8
9
|
const start = performance.now();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashPackage.js","sourceRoot":"","sources":["../../src/tasks/hashPackage.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"hashPackage.js","sourceRoot":"","sources":["../../src/tasks/hashPackage.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO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{ hash } from 'glob-hasher';\nimport objectHash from 'object-hash';\nimport path from 'path';\nimport { performance } from 'perf_hooks';\n\nconst excludeNodeModules = '!**/node_modules/**';\n\nexport async function hashPackage<T extends object>(options: {\n packagePath: string;\n isExternal: boolean;\n additionalProperties: T;\n}): Promise<string> {\n const start = performance.now();\n const { packagePath, isExternal, additionalProperties } = options;\n\n const shouldUseSrc = !isExternal && existsSync(path.join(packagePath, 'src'));\n\n const patterns = shouldUseSrc ? ['src/**', '*.json', excludeNodeModules] : ['**', excludeNodeModules];\n const files = await glob(patterns, {\n cwd: packagePath,\n });\n\n const globHash = hash(files, { cwd: packagePath });\n const result = objectHash({ files: globHash, additionalProperties }, { algorithm: 'md5' });\n\n console.debug(`Hashed ${path.basename(packagePath)} in ${performance.now() - start}ms`);\n return result;\n}\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.34.7"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.34.7"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.9",
|
|
4
4
|
"description": "The Cloudpack command line interface - a tool for managing fast inner and outer looping in web apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"cloudpack": "./bin/cloudpack.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ms-cloudpack/api-server": "^0.5.
|
|
20
|
-
"@ms-cloudpack/bundler": "^0.11.
|
|
19
|
+
"@ms-cloudpack/api-server": "^0.5.17",
|
|
20
|
+
"@ms-cloudpack/bundler": "^0.11.38",
|
|
21
21
|
"@ms-cloudpack/config": "^0.5.6",
|
|
22
22
|
"@ms-cloudpack/create-express-app": "^1.3.4",
|
|
23
23
|
"@ms-cloudpack/data-bus": "^0.2.0",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"@ms-cloudpack/package-utilities": "^3.1.0",
|
|
27
27
|
"@ms-cloudpack/path-string-parsing": "^1.0.1",
|
|
28
28
|
"@ms-cloudpack/path-utilities": "^2.2.2",
|
|
29
|
-
"@ms-cloudpack/task-reporter": "^0.3.
|
|
29
|
+
"@ms-cloudpack/task-reporter": "^0.3.3",
|
|
30
30
|
"@ms-cloudpack/telemetry": "^0.3.0",
|
|
31
31
|
"chokidar": "^3.5.3",
|
|
32
32
|
"commander": "^10.0.0",
|
|
33
33
|
"es-module-lexer": "^1.0.3",
|
|
34
34
|
"fast-glob": "^3.2.12",
|
|
35
|
-
"filenamify": "^
|
|
35
|
+
"filenamify": "^6.0.0",
|
|
36
36
|
"fs-extra": "^11.0.0",
|
|
37
37
|
"get-port": "^6.1.2",
|
|
38
38
|
"glob": "^8.0.0",
|
|
39
39
|
"glob-hasher": "^1.2.1",
|
|
40
|
-
"jsdom": "^
|
|
40
|
+
"jsdom": "^22.0.0",
|
|
41
41
|
"object-hash": "^3.0.0",
|
|
42
|
-
"open": "^
|
|
42
|
+
"open": "^9.0.0",
|
|
43
43
|
"p-queue": "^7.3.0",
|
|
44
44
|
"semver": "^7.3.7",
|
|
45
45
|
"uuid": "^9.0.0",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"@types/ws": "^8.5.4"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"api:update": "cloudpack-scripts api-update",
|
|
61
60
|
"api": "cloudpack-scripts api",
|
|
62
61
|
"build:watch": "cloudpack-scripts build-watch",
|
|
63
62
|
"build": "cloudpack-scripts build",
|