@servicetitan/startup 22.0.0 → 22.0.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.
package/dist/webpack/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export interface Options {
|
|
|
6
6
|
embed?: boolean;
|
|
7
7
|
name: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function createWebpackConfig(overrides: Overrides, options
|
|
9
|
+
export declare function createWebpackConfig(overrides: Overrides, options?: Partial<Options>): Configuration;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webpack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EACH,SAAS,IAAI,oBAAoB,EAEpC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,SAAS,IAAI,mBAAmB,EAEnC,MAAM,qBAAqB,CAAC;AAE7B,oBAAY,SAAS,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAEnE,MAAM,WAAW,OAAO;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webpack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EACH,SAAS,IAAI,oBAAoB,EAEpC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,SAAS,IAAI,mBAAmB,EAEnC,MAAM,qBAAqB,CAAC;AAE7B,oBAAY,SAAS,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAEnE,MAAM,WAAW,OAAO;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB;AAMD,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,SAAS,EACpB,OAAO,GAAE,OAAO,CAAC,OAAO,CAAM,GAC/B,aAAa,CAUf"}
|
package/dist/webpack/index.js
CHANGED
|
@@ -6,10 +6,11 @@ const production_config_1 = require("./production.config");
|
|
|
6
6
|
function isProduction(overrides) {
|
|
7
7
|
return overrides.configuration.mode === 'production';
|
|
8
8
|
}
|
|
9
|
-
function createWebpackConfig(overrides, options) {
|
|
9
|
+
function createWebpackConfig(overrides, options = {}) {
|
|
10
|
+
const opts = Object.assign({ embed: false, name: '' }, options);
|
|
10
11
|
return isProduction(overrides)
|
|
11
|
-
? (0, production_config_1.createConfig)(overrides,
|
|
12
|
-
: (0, development_config_1.createConfig)(overrides,
|
|
12
|
+
? (0, production_config_1.createConfig)(overrides, opts)
|
|
13
|
+
: (0, development_config_1.createConfig)(overrides, opts);
|
|
13
14
|
}
|
|
14
15
|
exports.createWebpackConfig = createWebpackConfig;
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/webpack/index.ts"],"names":[],"mappings":";;;AAEA,6DAG8B;AAE9B,2DAG6B;AAS7B,SAAS,YAAY,CAAC,SAAoB;IACtC,OAAO,SAAS,CAAC,aAAa,CAAC,IAAI,KAAK,YAAY,CAAC;AACzD,CAAC;AAED,SAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/webpack/index.ts"],"names":[],"mappings":";;;AAEA,6DAG8B;AAE9B,2DAG6B;AAS7B,SAAS,YAAY,CAAC,SAAoB;IACtC,OAAO,SAAS,CAAC,aAAa,CAAC,IAAI,KAAK,YAAY,CAAC;AACzD,CAAC;AAED,SAAgB,mBAAmB,CAC/B,SAAoB,EACpB,UAA4B,EAAE;IAE9B,MAAM,IAAI,mBACN,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,EAAE,IACL,OAAO,CACb,CAAC;IAEF,OAAO,YAAY,CAAC,SAAS,CAAC;QAC1B,CAAC,CAAC,IAAA,gCAAsB,EAAC,SAAS,EAAE,IAAI,CAAC;QACzC,CAAC,CAAC,IAAA,iCAAuB,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AACnD,CAAC;AAbD,kDAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/startup",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/startup",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@jest/core": "~27.5.1",
|
|
38
38
|
"@jest/types": "~27.5.1",
|
|
39
39
|
"@lerna/exec": "~5.5.2",
|
|
40
|
-
"@servicetitan/eslint-config": "^22.0.
|
|
41
|
-
"@servicetitan/stylelint-config": "^22.0.
|
|
40
|
+
"@servicetitan/eslint-config": "^22.0.1",
|
|
41
|
+
"@servicetitan/stylelint-config": "^22.0.1",
|
|
42
42
|
"@types/jest": "~27.4.0",
|
|
43
43
|
"chalk": "~4.1.2",
|
|
44
44
|
"chokidar": "~3.5.3",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"cli": {
|
|
92
92
|
"webpack": false
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "c8f7766a4c19c96a092abf550de2f046253f9cf3"
|
|
95
95
|
}
|
package/src/webpack/index.ts
CHANGED
|
@@ -21,8 +21,17 @@ function isProduction(overrides: Overrides): overrides is ProductionOverrides {
|
|
|
21
21
|
return overrides.configuration.mode === 'production';
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export function createWebpackConfig(
|
|
24
|
+
export function createWebpackConfig(
|
|
25
|
+
overrides: Overrides,
|
|
26
|
+
options: Partial<Options> = {}
|
|
27
|
+
): Configuration {
|
|
28
|
+
const opts: Options = {
|
|
29
|
+
embed: false,
|
|
30
|
+
name: '',
|
|
31
|
+
...options,
|
|
32
|
+
};
|
|
33
|
+
|
|
25
34
|
return isProduction(overrides)
|
|
26
|
-
? createProductionConfig(overrides,
|
|
27
|
-
: createDevelopmentConfig(overrides,
|
|
35
|
+
? createProductionConfig(overrides, opts)
|
|
36
|
+
: createDevelopmentConfig(overrides, opts);
|
|
28
37
|
}
|