@ms-cloudpack/cli 0.66.0 → 0.66.1
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":"neverExclude.d.ts","sourceRoot":"","sources":["../../../src/commands/init/neverExclude.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"neverExclude.d.ts","sourceRoot":"","sources":["../../../src/commands/init/neverExclude.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAKlE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAKlF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { mergeArrayDefaults } from '@ms-cloudpack/package-utilities';
|
|
1
2
|
const defaultNeverExcludeDependencies = ['tslib', '@babel/runtime'];
|
|
2
3
|
/**
|
|
3
4
|
* Checks if a package should never be excluded.
|
|
@@ -8,10 +9,7 @@ const defaultNeverExcludeDependencies = ['tslib', '@babel/runtime'];
|
|
|
8
9
|
*/
|
|
9
10
|
export function neverExclude(packageName, config) {
|
|
10
11
|
// Set never exclude to the default if it is not set. Replace string '...' with default if set.
|
|
11
|
-
const neverExcludeDependencies = config.neverExcludeDependencies
|
|
12
|
-
if (neverExcludeDependencies.includes('...')) {
|
|
13
|
-
neverExcludeDependencies.splice(neverExcludeDependencies.indexOf('...'), 1, ...defaultNeverExcludeDependencies);
|
|
14
|
-
}
|
|
12
|
+
const neverExcludeDependencies = mergeArrayDefaults(config.neverExcludeDependencies, defaultNeverExcludeDependencies);
|
|
15
13
|
return neverExcludeDependencies.includes(packageName);
|
|
16
14
|
}
|
|
17
15
|
//# sourceMappingURL=neverExclude.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neverExclude.js","sourceRoot":"","sources":["../../../src/commands/init/neverExclude.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"neverExclude.js","sourceRoot":"","sources":["../../../src/commands/init/neverExclude.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,+BAA+B,GAAG,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,WAAmB,EAAE,MAAuB;IACvE,+FAA+F;IAC/F,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,MAAM,CAAC,wBAAwB,EAAE,+BAA+B,CAAC,CAAC;IAEtH,OAAO,wBAAwB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACxD,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/common-types';\nimport { mergeArrayDefaults } from '@ms-cloudpack/package-utilities';\n\nconst defaultNeverExcludeDependencies = ['tslib', '@babel/runtime'];\n\n/**\n * Checks if a package should never be excluded.\n * Uses the `neverExcludeDependencies` field in the config or the default list.\n * @param packageName Name of the package to check.\n * @param config Cloudpack configuration.\n * @returns True if the package should never be excluded.\n */\nexport function neverExclude(packageName: string, config: CloudpackConfig): boolean {\n // Set never exclude to the default if it is not set. Replace string '...' with default if set.\n const neverExcludeDependencies = mergeArrayDefaults(config.neverExcludeDependencies, defaultNeverExcludeDependencies);\n\n return neverExcludeDependencies.includes(packageName);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.1",
|
|
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",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"cloudpack": "./bin/cloudpack.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ms-cloudpack/api-server": "^0.46.
|
|
14
|
-
"@ms-cloudpack/app-server": "^0.9.
|
|
13
|
+
"@ms-cloudpack/api-server": "^0.46.2",
|
|
14
|
+
"@ms-cloudpack/app-server": "^0.9.2",
|
|
15
15
|
"@ms-cloudpack/common-types": "^0.9.0",
|
|
16
|
-
"@ms-cloudpack/config": "^0.22.
|
|
16
|
+
"@ms-cloudpack/config": "^0.22.1",
|
|
17
17
|
"@ms-cloudpack/feature-flags": "^0.1.1",
|
|
18
18
|
"@ms-cloudpack/json-utilities": "^0.1.4",
|
|
19
|
-
"@ms-cloudpack/overlay": "^0.17.
|
|
20
|
-
"@ms-cloudpack/package-utilities": "^7.
|
|
19
|
+
"@ms-cloudpack/overlay": "^0.17.26",
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^7.8.0",
|
|
21
21
|
"@ms-cloudpack/path-string-parsing": "^1.2.3",
|
|
22
22
|
"@ms-cloudpack/path-utilities": "^2.7.21",
|
|
23
23
|
"@ms-cloudpack/remote-cache": "^0.8.0",
|