@servicetitan/startup 34.3.0 → 35.1.0
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/cli/commands/get-command.d.ts.map +1 -1
- package/dist/cli/commands/get-command.js +2 -0
- package/dist/cli/commands/get-command.js.map +1 -1
- package/dist/cli/commands/mfe-package-publish.d.ts +10 -0
- package/dist/cli/commands/mfe-package-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-publish.js +12 -0
- package/dist/cli/commands/mfe-package-publish.js.map +1 -1
- package/dist/cli/commands/mfe-package-rollback.d.ts +10 -1
- package/dist/cli/commands/mfe-package-rollback.d.ts.map +1 -1
- package/dist/cli/commands/mfe-package-rollback.js +15 -3
- package/dist/cli/commands/mfe-package-rollback.js.map +1 -1
- package/dist/cli/commands/mfe-publish.d.ts.map +1 -1
- package/dist/cli/commands/mfe-publish.js +10 -4
- package/dist/cli/commands/mfe-publish.js.map +1 -1
- package/dist/cli/commands/mfe-purge-cache.d.ts +57 -0
- package/dist/cli/commands/mfe-purge-cache.d.ts.map +1 -0
- package/dist/cli/commands/mfe-purge-cache.js +101 -0
- package/dist/cli/commands/mfe-purge-cache.js.map +1 -0
- package/dist/cli/commands/{utils.d.ts → utils/build-rollback-tag.d.ts} +1 -2
- package/dist/cli/commands/utils/build-rollback-tag.d.ts.map +1 -0
- package/dist/cli/commands/{utils.js → utils/build-rollback-tag.js} +1 -5
- package/dist/cli/commands/utils/build-rollback-tag.js.map +1 -0
- package/dist/cli/commands/utils/constants.d.ts +2 -0
- package/dist/cli/commands/utils/constants.d.ts.map +1 -0
- package/dist/cli/commands/utils/constants.js +13 -0
- package/dist/cli/commands/utils/constants.js.map +1 -0
- package/dist/cli/commands/utils/index.d.ts +4 -0
- package/dist/cli/commands/utils/index.d.ts.map +1 -0
- package/dist/cli/commands/utils/index.js +22 -0
- package/dist/cli/commands/utils/index.js.map +1 -0
- package/dist/cli/commands/utils/purge-cache.d.ts +6 -0
- package/dist/cli/commands/utils/purge-cache.d.ts.map +1 -0
- package/dist/cli/commands/utils/purge-cache.js +21 -0
- package/dist/cli/commands/utils/purge-cache.js.map +1 -0
- package/dist/cli/utils/cli-os.js +1 -1
- package/dist/cli/utils/cli-os.js.map +1 -1
- package/dist/cypress-config/index.d.ts +2 -0
- package/dist/cypress-config/index.d.ts.map +1 -0
- package/dist/cypress-config/index.js +20 -0
- package/dist/cypress-config/index.js.map +1 -0
- package/dist/cypress-config/webpack-config.d.ts +4 -0
- package/dist/cypress-config/webpack-config.d.ts.map +1 -0
- package/dist/cypress-config/webpack-config.js +76 -0
- package/dist/cypress-config/webpack-config.js.map +1 -0
- package/dist/storybook-config/swc.js +1 -1
- package/dist/storybook-config/swc.js.map +1 -1
- package/dist/utils/get-base-tsconfig.d.ts +2 -0
- package/dist/utils/get-base-tsconfig.d.ts.map +1 -0
- package/dist/utils/get-base-tsconfig.js +21 -0
- package/dist/utils/get-base-tsconfig.js.map +1 -0
- package/dist/utils/get-configuration.d.ts +1 -0
- package/dist/utils/get-configuration.d.ts.map +1 -1
- package/dist/utils/get-configuration.js +1 -0
- package/dist/utils/get-configuration.js.map +1 -1
- package/dist/utils/get-tsconfig-with-fallback.d.ts +6 -0
- package/dist/utils/get-tsconfig-with-fallback.d.ts.map +1 -0
- package/dist/utils/get-tsconfig-with-fallback.js +24 -0
- package/dist/utils/get-tsconfig-with-fallback.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +23 -21
- package/src/cli/commands/__tests__/mfe-package-publish.test.ts +27 -1
- package/src/cli/commands/__tests__/mfe-package-rollback.test.ts +31 -0
- package/src/cli/commands/__tests__/mfe-publish.test.ts +4 -2
- package/src/cli/commands/__tests__/mfe-purge-cache.test.ts +141 -0
- package/src/cli/commands/get-command.ts +2 -0
- package/src/cli/commands/mfe-package-publish.ts +11 -1
- package/src/cli/commands/mfe-package-rollback.ts +15 -5
- package/src/cli/commands/mfe-publish.ts +14 -3
- package/src/cli/commands/mfe-purge-cache.ts +75 -0
- package/src/cli/commands/utils/__tests__/purge-cache.test.ts +40 -0
- package/src/cli/commands/{utils.ts → utils/build-rollback-tag.ts} +0 -1
- package/src/cli/commands/utils/constants.ts +1 -0
- package/src/cli/commands/utils/index.ts +3 -0
- package/src/cli/commands/utils/purge-cache.ts +13 -0
- package/src/cli/utils/cli-os.ts +1 -1
- package/src/cypress-config/__tests__/webpack-config.test.ts +124 -0
- package/src/cypress-config/index.ts +1 -0
- package/src/cypress-config/webpack-config.ts +58 -0
- package/src/storybook-config/__tests__/swc.test.ts +11 -0
- package/src/storybook-config/swc.ts +2 -2
- package/src/utils/__tests__/get-tsconfig-with-fallback.test.ts +23 -0
- package/src/utils/__tests__/get-tsconfig.test.ts +4 -4
- package/src/utils/get-base-tsconfig.ts +5 -0
- package/src/utils/get-configuration.ts +1 -0
- package/src/utils/get-tsconfig-with-fallback.ts +12 -0
- package/src/utils/index.ts +2 -0
- package/dist/cli/commands/utils.d.ts.map +0 -1
- package/dist/cli/commands/utils.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { runCommandOutput } from '../../utils';
|
|
2
|
+
|
|
3
|
+
const DEV_MFE_REGISTRY = 'https://verdaccio.st.dev';
|
|
4
|
+
const DEFAULT_UNPKG_HOST = 'https://unpkg.servicetitan.com';
|
|
5
|
+
const DEV_UNPKG_HOST = 'https://unpkg.st.dev';
|
|
6
|
+
|
|
7
|
+
export function purgeCache(options: { packageName: string; registry?: string; tag: string }) {
|
|
8
|
+
const { packageName, registry, tag } = options;
|
|
9
|
+
const host = registry === DEV_MFE_REGISTRY ? DEV_UNPKG_HOST : DEFAULT_UNPKG_HOST;
|
|
10
|
+
runCommandOutput(
|
|
11
|
+
`npx startup mfe-purge-cache --host ${host} --package-name ${packageName} --tag ${tag}`
|
|
12
|
+
);
|
|
13
|
+
}
|
package/src/cli/utils/cli-os.ts
CHANGED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { fs, vol } from 'memfs';
|
|
2
|
+
import { getSwcOptions } from '../../cli/tasks';
|
|
3
|
+
import { TSConfig } from '../../cli/utils';
|
|
4
|
+
import { getBaseTsConfig } from '../../utils';
|
|
5
|
+
import { Overrides, rulesConfig } from '../../webpack/configs';
|
|
6
|
+
import { webpackConfig } from '../webpack-config';
|
|
7
|
+
|
|
8
|
+
jest.mock('fs', () => fs);
|
|
9
|
+
jest.mock('../../webpack/configs');
|
|
10
|
+
jest.mock('../../cli/tasks');
|
|
11
|
+
|
|
12
|
+
describe(`[startup/cypress-config] ${webpackConfig.name}`, () => {
|
|
13
|
+
const mockRules: any[] = [
|
|
14
|
+
{ test: /\.css$/, use: ['css-loader'] },
|
|
15
|
+
{ test: /\.module\.less$/, use: ['style-loader', 'less-loader'] },
|
|
16
|
+
];
|
|
17
|
+
const mockSwcOptions: any = { jsc: 'foobar' };
|
|
18
|
+
const mockTsConfig = { compilerOptions: { target: 'es2020' } };
|
|
19
|
+
const mockFallbackTsConfig = { compilerOptions: { target: 'es2018' } };
|
|
20
|
+
const fallbackConfig = getBaseTsConfig();
|
|
21
|
+
|
|
22
|
+
let overrides: Overrides | undefined;
|
|
23
|
+
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
jest.clearAllMocks();
|
|
26
|
+
jest.mocked(rulesConfig).mockReturnValue({ rules: mockRules });
|
|
27
|
+
jest.mocked(getSwcOptions).mockReturnValue(mockSwcOptions);
|
|
28
|
+
vol.fromJSON({
|
|
29
|
+
'tsconfig.json': JSON.stringify(mockTsConfig),
|
|
30
|
+
[fallbackConfig]: JSON.stringify(mockFallbackTsConfig),
|
|
31
|
+
});
|
|
32
|
+
overrides = undefined;
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
afterEach(() => vol.reset());
|
|
36
|
+
|
|
37
|
+
const subject = () => webpackConfig(overrides);
|
|
38
|
+
|
|
39
|
+
test('gets rules with non-production context', () => {
|
|
40
|
+
subject();
|
|
41
|
+
|
|
42
|
+
expect(rulesConfig).toHaveBeenCalledWith(
|
|
43
|
+
expect.objectContaining({ isProduction: false }),
|
|
44
|
+
expect.anything()
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('includes all rules from rulesConfig', () => {
|
|
49
|
+
const result = subject();
|
|
50
|
+
|
|
51
|
+
for (const rule of mockRules) {
|
|
52
|
+
expect(result.module!.rules).toContainEqual(rule);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test('adds swc-loader rule for TypeScript files', () => {
|
|
57
|
+
const result = subject();
|
|
58
|
+
|
|
59
|
+
expect(result.module!.rules).toContainEqual(
|
|
60
|
+
expect.objectContaining({
|
|
61
|
+
test: /\.tsx?$/,
|
|
62
|
+
exclude: /node_modules/,
|
|
63
|
+
use: { loader: 'swc-loader', options: mockSwcOptions },
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test('passes tsconfig content to getSwcOptions', () => {
|
|
69
|
+
subject();
|
|
70
|
+
|
|
71
|
+
const tsConfigArg = jest.mocked(getSwcOptions).mock.calls[0][0];
|
|
72
|
+
expect(tsConfigArg).toStrictEqual(new TSConfig('tsconfig.json'));
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
describe('when no tsconfig is found', () => {
|
|
76
|
+
beforeEach(() => fs.rmSync('tsconfig.json'));
|
|
77
|
+
|
|
78
|
+
test('gets default swc config from base.json', () => {
|
|
79
|
+
subject();
|
|
80
|
+
|
|
81
|
+
const tsConfigArg = jest.mocked(getSwcOptions).mock.calls[0][0];
|
|
82
|
+
expect(tsConfigArg).toStrictEqual(new TSConfig(fallbackConfig));
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test('includes resolve extensions for TypeScript and JavaScript', () => {
|
|
87
|
+
expect(subject().resolve!.extensions).toEqual(['.ts', '.tsx', '.js', '.jsx']);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
describe('with overrides', () => {
|
|
91
|
+
beforeEach(() => (overrides = { plugins: { MiniCssExtractPlugin: {} } }));
|
|
92
|
+
|
|
93
|
+
test('passes overrides through to rulesConfig', () => {
|
|
94
|
+
subject();
|
|
95
|
+
|
|
96
|
+
expect(rulesConfig).toHaveBeenCalledWith(expect.anything(), overrides);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
describe('with configuration overrides', () => {
|
|
100
|
+
beforeEach(
|
|
101
|
+
() =>
|
|
102
|
+
(overrides = {
|
|
103
|
+
configuration: {
|
|
104
|
+
devtool: 'eval-source-map',
|
|
105
|
+
resolve: {
|
|
106
|
+
alias: {
|
|
107
|
+
'@': '/src',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
})
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
test('merges configuration overrides into result', () => {
|
|
115
|
+
const result = subject();
|
|
116
|
+
|
|
117
|
+
expect(result.devtool).toBe(overrides!.configuration!.devtool);
|
|
118
|
+
expect(result.resolve?.alias).toEqual(overrides!.configuration!.resolve!.alias);
|
|
119
|
+
expect(result.resolve?.extensions).toEqual(['.ts', '.tsx', '.js', '.jsx']);
|
|
120
|
+
expect(result.module?.rules).toBeDefined();
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './webpack-config';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { inspect } from 'node:util';
|
|
2
|
+
import type { Configuration } from 'webpack';
|
|
3
|
+
import merge from 'webpack-merge';
|
|
4
|
+
import { getSwcOptions } from '../cli/tasks';
|
|
5
|
+
import { TSConfig } from '../cli/utils';
|
|
6
|
+
import { getTsConfigWithFallback, log } from '../utils';
|
|
7
|
+
import { Context, Overrides, rulesConfig } from '../webpack/configs';
|
|
8
|
+
|
|
9
|
+
export function webpackConfig(overrides?: Overrides): Configuration {
|
|
10
|
+
const context = getContext();
|
|
11
|
+
const rules = getRules(context, overrides ?? {});
|
|
12
|
+
|
|
13
|
+
/* istanbul ignore next: debug only */
|
|
14
|
+
log.debug('cypress-config:webpack-config', () => inspect({ rules }, { depth: null }));
|
|
15
|
+
|
|
16
|
+
const config: Configuration = {
|
|
17
|
+
module: {
|
|
18
|
+
rules,
|
|
19
|
+
},
|
|
20
|
+
resolve: {
|
|
21
|
+
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return merge(config, overrides?.configuration ?? {});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getContext(): Context {
|
|
29
|
+
return {
|
|
30
|
+
destination: '',
|
|
31
|
+
isProduction: false,
|
|
32
|
+
name: '',
|
|
33
|
+
packageData: {} as any,
|
|
34
|
+
sharedDependencies: {},
|
|
35
|
+
source: '',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function getRules(context: Context, overrides: Overrides) {
|
|
40
|
+
const { rules } = rulesConfig(context, overrides);
|
|
41
|
+
|
|
42
|
+
return [getSwcLoaderRule(), ...rules];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function getSwcLoaderRule() {
|
|
46
|
+
const tsConfig = new TSConfig(getTsConfigWithFallback());
|
|
47
|
+
|
|
48
|
+
const swcOptions = getSwcOptions(tsConfig);
|
|
49
|
+
|
|
50
|
+
return {
|
|
51
|
+
test: /\.tsx?$/,
|
|
52
|
+
exclude: /node_modules/,
|
|
53
|
+
use: {
|
|
54
|
+
loader: 'swc-loader',
|
|
55
|
+
options: swcOptions,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -2,16 +2,19 @@ import { SwcOptions } from '@swc/cli';
|
|
|
2
2
|
import { fs, vol } from 'memfs';
|
|
3
3
|
import { getSwcOptions } from '../../cli/tasks';
|
|
4
4
|
import { TSConfig } from '../../cli/utils';
|
|
5
|
+
import { getBaseTsConfig } from '../../utils';
|
|
5
6
|
import { swc } from '../swc';
|
|
6
7
|
|
|
7
8
|
jest.mock('fs', () => fs);
|
|
8
9
|
|
|
9
10
|
describe(`[startup/storybook-config] ${swc.name}`, () => {
|
|
11
|
+
const baseJsonPath = getBaseTsConfig();
|
|
10
12
|
const config: SwcOptions = { env: { bugfixes: true } };
|
|
11
13
|
let tsConfig: TSConfig;
|
|
12
14
|
|
|
13
15
|
function setTsConfig(config: Record<string, any> = {}) {
|
|
14
16
|
return vol.fromJSON({
|
|
17
|
+
[baseJsonPath]: JSON.stringify({ compilerOptions: { sourceMap: true } }),
|
|
15
18
|
'tsconfig.json': JSON.stringify(config),
|
|
16
19
|
});
|
|
17
20
|
}
|
|
@@ -34,4 +37,12 @@ describe(`[startup/storybook-config] ${swc.name}`, () => {
|
|
|
34
37
|
expect(subject().jsc.target).toBeUndefined();
|
|
35
38
|
});
|
|
36
39
|
});
|
|
40
|
+
|
|
41
|
+
describe('when no tsconfig is found', () => {
|
|
42
|
+
beforeEach(() => fs.rmSync('tsconfig.json'));
|
|
43
|
+
|
|
44
|
+
test('gets default swc config from base.json', () => {
|
|
45
|
+
expect(subject()).toEqual({ ...config, ...getSwcOptions(new TSConfig(baseJsonPath)) });
|
|
46
|
+
});
|
|
47
|
+
});
|
|
37
48
|
});
|
|
@@ -2,10 +2,10 @@ import type { SwcOptions } from '@swc/cli';
|
|
|
2
2
|
import { inspect } from 'node:util';
|
|
3
3
|
import { getSwcOptions } from '../cli/tasks';
|
|
4
4
|
import { TSConfig } from '../cli/utils';
|
|
5
|
-
import {
|
|
5
|
+
import { getTsConfigWithFallback, log } from '../utils';
|
|
6
6
|
|
|
7
7
|
export function swc(config: SwcOptions) {
|
|
8
|
-
const tsConfig = new TSConfig(
|
|
8
|
+
const tsConfig = new TSConfig(getTsConfigWithFallback());
|
|
9
9
|
const swcOptions = getSwcOptions(tsConfig);
|
|
10
10
|
|
|
11
11
|
/*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fs, vol } from 'memfs';
|
|
2
|
+
import { getBaseTsConfig } from '../get-base-tsconfig';
|
|
3
|
+
import { getTsConfigWithFallback } from '../get-tsconfig-with-fallback';
|
|
4
|
+
|
|
5
|
+
jest.mock('fs', () => fs);
|
|
6
|
+
|
|
7
|
+
describe(`[startup] Utils`, () => {
|
|
8
|
+
describe(`${getTsConfigWithFallback.name}`, () => {
|
|
9
|
+
afterEach(() => vol.reset());
|
|
10
|
+
|
|
11
|
+
test('returns base.json', () => {
|
|
12
|
+
expect(getTsConfigWithFallback()).toBe(getBaseTsConfig());
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe('when tsconfig exists', () => {
|
|
16
|
+
beforeEach(() => vol.fromJSON({ 'tsconfig.json': JSON.stringify({}) }));
|
|
17
|
+
|
|
18
|
+
test('returns tsconfig', () => {
|
|
19
|
+
expect(getTsConfigWithFallback()).toBe('tsconfig.json');
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fs, vol } from 'memfs';
|
|
2
|
-
import path from 'path';
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { getTsConfig } from '../get-tsconfig';
|
|
4
4
|
|
|
5
5
|
jest.mock('fs', () => fs);
|
|
@@ -36,9 +36,9 @@ describe(`[startup] Utils`, () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
describe(`when ${buildConfig} is present`, () => {
|
|
39
|
-
beforeEach(() =>
|
|
40
|
-
vol.fromJSON({ [`packages/foo/${buildConfig}`]: JSON.stringify({}) })
|
|
41
|
-
|
|
39
|
+
beforeEach(() =>
|
|
40
|
+
vol.fromJSON({ [`packages/foo/${buildConfig}`]: JSON.stringify({}) })
|
|
41
|
+
);
|
|
42
42
|
|
|
43
43
|
test(`returns {location}/${buildConfig}`, () => {
|
|
44
44
|
expect(subject()).toBe(path.join(location!, buildConfig));
|
|
@@ -76,6 +76,7 @@ export enum CommandName {
|
|
|
76
76
|
'mfe-package-publish' = 'mfe-package-publish',
|
|
77
77
|
'mfe-package-rollback' = 'mfe-package-rollback',
|
|
78
78
|
'mfe-publish' = 'mfe-publish',
|
|
79
|
+
'mfe-purge-cache' = 'mfe-purge-cache',
|
|
79
80
|
'prepare-package' = 'prepare-package',
|
|
80
81
|
'review' = 'review',
|
|
81
82
|
'start' = 'start',
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { getBaseTsConfig } from './get-base-tsconfig';
|
|
3
|
+
import { getTsConfig } from './get-tsconfig';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns the tsconfig file to use for builds, falling back to startup's base.json
|
|
7
|
+
* if no tsconfig is found at the given location.
|
|
8
|
+
*/
|
|
9
|
+
export function getTsConfigWithFallback(location = './') {
|
|
10
|
+
const config = getTsConfig(location);
|
|
11
|
+
return fs.existsSync(config) ? config : getBaseTsConfig();
|
|
12
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './find-packages';
|
|
|
2
2
|
export * from './find-up';
|
|
3
3
|
export * from './format-duration';
|
|
4
4
|
export * from './format-relative-date';
|
|
5
|
+
export * from './get-base-tsconfig';
|
|
5
6
|
export * from './get-branch-configs';
|
|
6
7
|
export * from './get-configuration';
|
|
7
8
|
export * from './get-destination-folders';
|
|
@@ -12,6 +13,7 @@ export * from './get-package-name';
|
|
|
12
13
|
export * from './get-packages';
|
|
13
14
|
export * from './get-startup-version';
|
|
14
15
|
export * from './get-tsconfig';
|
|
16
|
+
export * from './get-tsconfig-with-fallback';
|
|
15
17
|
export * from './load-shared-dependencies';
|
|
16
18
|
export * from './log';
|
|
17
19
|
export * from './log-errors';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,uCAAuC,CAAC;AACzE,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/cli/commands/utils.ts"],"sourcesContent":["export const DEFAULT_MFE_REGISTRY = 'https://verdaccio.servicetitan.com';\nexport const ROLLBACK_TAG_SUFFIX = '-rollback-1';\n\nexport function buildRollbackTag(tag: string): string {\n return `${tag}${ROLLBACK_TAG_SUFFIX}`;\n}\n"],"names":["DEFAULT_MFE_REGISTRY","ROLLBACK_TAG_SUFFIX","buildRollbackTag","tag"],"mappings":";;;;;;;;;;;QAAaA;eAAAA;;QACAC;eAAAA;;QAEGC;eAAAA;;;AAHT,MAAMF,uBAAuB;AAC7B,MAAMC,sBAAsB;AAE5B,SAASC,iBAAiBC,GAAW;IACxC,OAAO,GAAGA,MAAMF,qBAAqB;AACzC"}
|