@camera.ui/cli 0.0.37 → 0.0.38
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.
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface ModuleResolutionPaths {
|
|
2
|
+
customPaths?: string[];
|
|
3
|
+
includeLocalModules?: boolean;
|
|
4
|
+
includeCliModules?: boolean;
|
|
5
|
+
includeGlobalModules?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class ModuleResolver {
|
|
8
|
+
private readonly cwd;
|
|
9
|
+
private readonly cliRoot;
|
|
10
|
+
private readonly globalRoot;
|
|
11
|
+
constructor();
|
|
12
|
+
resolveModule(modulePath: string, options?: ModuleResolutionPaths & {
|
|
13
|
+
silent?: boolean;
|
|
14
|
+
}): Promise<string>;
|
|
15
|
+
resolveModules(modulePaths: string[], options?: ModuleResolutionPaths & {
|
|
16
|
+
silent?: boolean;
|
|
17
|
+
}): Promise<string[]>;
|
|
18
|
+
getWebpackLoaderConfig(options?: ModuleResolutionPaths): {
|
|
19
|
+
resolveLoader: {
|
|
20
|
+
modules: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
getWebpackResolveConfig(options?: ModuleResolutionPaths): {
|
|
24
|
+
resolve: {
|
|
25
|
+
modules: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
resolveBabelModule(modulePath: string, options?: {
|
|
29
|
+
config?: any;
|
|
30
|
+
silent?: boolean;
|
|
31
|
+
}): Promise<[string, any] | string>;
|
|
32
|
+
getCliRoot(): string;
|
|
33
|
+
getCwd(): string;
|
|
34
|
+
getGlobalRoot(): string;
|
|
35
|
+
private getNodeModulesPaths;
|
|
36
|
+
}
|
|
37
|
+
export declare const moduleResolver: ModuleResolver;
|
|
38
|
+
export declare const resolveModule: (modulePath: string, options?: ModuleResolutionPaths & {
|
|
39
|
+
silent?: boolean;
|
|
40
|
+
}) => Promise<string>;
|
|
41
|
+
export declare const resolveModules: (modulePaths: string[], options?: ModuleResolutionPaths & {
|
|
42
|
+
silent?: boolean;
|
|
43
|
+
}) => Promise<string[]>;
|
|
44
|
+
export declare const resolveBabelModule: (modulePath: string, options?: {
|
|
45
|
+
config?: any;
|
|
46
|
+
silent?: boolean;
|
|
47
|
+
}) => Promise<[string, any] | string>;
|
|
48
|
+
export declare const getWebpackLoaderConfig: (options?: ModuleResolutionPaths) => {
|
|
49
|
+
resolveLoader: {
|
|
50
|
+
modules: string[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const getWebpackResolveConfig: (options?: ModuleResolutionPaths) => {
|
|
54
|
+
resolve: {
|
|
55
|
+
modules: string[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { pathExists } from 'fs-extra/esm';
|
|
2
|
+
import { dirname, isAbsolute, resolve } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
+
const __dirname = dirname(__filename);
|
|
6
|
+
export class ModuleResolver {
|
|
7
|
+
cwd;
|
|
8
|
+
cliRoot;
|
|
9
|
+
globalRoot;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.cwd = process.cwd();
|
|
12
|
+
this.cliRoot = resolve(__dirname, '../..');
|
|
13
|
+
this.globalRoot = dirname(dirname(process.execPath));
|
|
14
|
+
}
|
|
15
|
+
async resolveModule(modulePath, options = {}) {
|
|
16
|
+
// If path is absolute, just check if it exists
|
|
17
|
+
if (isAbsolute(modulePath)) {
|
|
18
|
+
if (await pathExists(modulePath)) {
|
|
19
|
+
return modulePath;
|
|
20
|
+
}
|
|
21
|
+
if (!options.silent) {
|
|
22
|
+
throw new Error(`Could not resolve module: ${modulePath}`);
|
|
23
|
+
}
|
|
24
|
+
return modulePath;
|
|
25
|
+
}
|
|
26
|
+
const paths = this.getNodeModulesPaths(options);
|
|
27
|
+
const possiblePaths = paths.map((p) => resolve(p, modulePath));
|
|
28
|
+
for (const path of possiblePaths) {
|
|
29
|
+
if (await pathExists(path)) {
|
|
30
|
+
return path;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (!options.silent) {
|
|
34
|
+
throw new Error(`Could not resolve module: ${modulePath}\nSearched in:\n${possiblePaths.map((p) => `- ${p}`).join('\n')}`);
|
|
35
|
+
}
|
|
36
|
+
return possiblePaths[0];
|
|
37
|
+
}
|
|
38
|
+
async resolveModules(modulePaths, options = {}) {
|
|
39
|
+
return Promise.all(modulePaths.map((p) => this.resolveModule(p, options)));
|
|
40
|
+
}
|
|
41
|
+
getWebpackLoaderConfig(options = {}) {
|
|
42
|
+
return {
|
|
43
|
+
resolveLoader: {
|
|
44
|
+
modules: this.getNodeModulesPaths(options),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
getWebpackResolveConfig(options = {}) {
|
|
49
|
+
return {
|
|
50
|
+
resolve: {
|
|
51
|
+
modules: this.getNodeModulesPaths(options),
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
async resolveBabelModule(modulePath, options = {}) {
|
|
56
|
+
const resolvedPath = await this.resolveModule(modulePath, { silent: options.silent });
|
|
57
|
+
return options.config ? [resolvedPath, options.config] : resolvedPath;
|
|
58
|
+
}
|
|
59
|
+
getCliRoot() {
|
|
60
|
+
return this.cliRoot;
|
|
61
|
+
}
|
|
62
|
+
getCwd() {
|
|
63
|
+
return this.cwd;
|
|
64
|
+
}
|
|
65
|
+
getGlobalRoot() {
|
|
66
|
+
return this.globalRoot;
|
|
67
|
+
}
|
|
68
|
+
getNodeModulesPaths(options = {}) {
|
|
69
|
+
const { customPaths = [], includeLocalModules = true, includeCliModules = true, includeGlobalModules = true } = options;
|
|
70
|
+
const paths = [];
|
|
71
|
+
// Add custom paths first
|
|
72
|
+
paths.push(...customPaths.map((p) => resolve(p)));
|
|
73
|
+
// Add local node_modules (when installed as dependency)
|
|
74
|
+
if (includeLocalModules) {
|
|
75
|
+
paths.push(resolve(this.cwd, 'node_modules'));
|
|
76
|
+
}
|
|
77
|
+
// Add CLI package node_modules
|
|
78
|
+
if (includeCliModules) {
|
|
79
|
+
paths.push(resolve(this.cliRoot, 'node_modules'));
|
|
80
|
+
}
|
|
81
|
+
// Add global node_modules
|
|
82
|
+
if (includeGlobalModules) {
|
|
83
|
+
if (process.platform === 'win32') {
|
|
84
|
+
paths.push(resolve(this.globalRoot, 'node_modules'));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
paths.push(resolve(this.globalRoot, 'lib/node_modules'), '/usr/local/lib/node_modules', '/usr/lib/node_modules');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return paths;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export const moduleResolver = new ModuleResolver();
|
|
94
|
+
export const resolveModule = moduleResolver.resolveModule.bind(moduleResolver);
|
|
95
|
+
export const resolveModules = moduleResolver.resolveModules.bind(moduleResolver);
|
|
96
|
+
export const resolveBabelModule = moduleResolver.resolveBabelModule.bind(moduleResolver);
|
|
97
|
+
export const getWebpackLoaderConfig = moduleResolver.getWebpackLoaderConfig.bind(moduleResolver);
|
|
98
|
+
export const getWebpackResolveConfig = moduleResolver.getWebpackResolveConfig.bind(moduleResolver);
|
|
99
|
+
//# sourceMappingURL=moduleResolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleResolve.js","sourceRoot":"","sources":["../../src/utils/moduleResolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS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CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC"}
|
package/dist/utils/parser.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { pathExists } from 'fs-extra/esm';
|
|
2
2
|
import { readFile, rm } from 'node:fs/promises';
|
|
3
|
-
import {
|
|
4
|
-
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import TerserPlugin from 'terser-webpack-plugin';
|
|
3
|
+
import { isAbsolute, resolve } from 'node:path';
|
|
6
4
|
import * as tsImport from 'ts-import';
|
|
7
5
|
import webpack from 'webpack';
|
|
8
|
-
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
|
9
6
|
import { logger } from './logger.js';
|
|
7
|
+
import { moduleResolver } from './moduleResolve.js';
|
|
10
8
|
import { detectLanguage } from './utils.js';
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = dirname(__filename);
|
|
13
9
|
async function detectJsProjectType(rootDir) {
|
|
14
10
|
try {
|
|
15
11
|
const pluginLanguage = await detectLanguage(rootDir);
|
|
@@ -25,117 +21,113 @@ async function detectJsProjectType(rootDir) {
|
|
|
25
21
|
return 'javascript-cjs';
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
|
-
function
|
|
24
|
+
async function fileExists(path) {
|
|
25
|
+
try {
|
|
26
|
+
await readFile(path);
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async function loadConfig() {
|
|
34
|
+
const tsConfigPath = resolve(process.cwd(), 'cameraui.config.ts');
|
|
35
|
+
const jsConfigPath = resolve(process.cwd(), 'cameraui.config.js');
|
|
36
|
+
try {
|
|
37
|
+
if (await pathExists(tsConfigPath)) {
|
|
38
|
+
const asyncResult = await tsImport.load(tsConfigPath, { useCache: false });
|
|
39
|
+
const cacheDir = resolve(process.cwd(), '.cache');
|
|
40
|
+
await rm(cacheDir, { force: true, recursive: true });
|
|
41
|
+
return asyncResult.default || asyncResult;
|
|
42
|
+
}
|
|
43
|
+
if (await pathExists(jsConfigPath)) {
|
|
44
|
+
const config = await import(jsConfigPath);
|
|
45
|
+
return config.default || config;
|
|
46
|
+
}
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
logger.buildError(error);
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function getModuleRules(projectType, targetRootDir) {
|
|
29
55
|
const rules = [];
|
|
30
56
|
const isTypeScript = projectType.startsWith('typescript');
|
|
31
|
-
// TypeScript Regeln
|
|
32
57
|
if (isTypeScript) {
|
|
33
58
|
const tsRule = {
|
|
34
59
|
test: /\.ts$/,
|
|
35
60
|
exclude: /node_modules/,
|
|
36
61
|
use: [],
|
|
37
62
|
};
|
|
38
|
-
// TypeScript Loader zuerst
|
|
39
63
|
tsRule.use.push({
|
|
40
|
-
loader: 'ts-loader',
|
|
64
|
+
loader: await moduleResolver.resolveModule('ts-loader'),
|
|
41
65
|
options: {
|
|
42
66
|
configFile: resolve(targetRootDir, 'tsconfig.json'),
|
|
43
67
|
transpileOnly: true,
|
|
44
68
|
compilerOptions: {
|
|
45
|
-
module: 'esnext',
|
|
69
|
+
module: 'esnext',
|
|
46
70
|
moduleResolution: 'node',
|
|
47
71
|
},
|
|
48
72
|
},
|
|
49
73
|
});
|
|
50
|
-
// Dann Babel für finale Transformation
|
|
51
74
|
tsRule.use.push({
|
|
52
|
-
loader: 'babel-loader',
|
|
75
|
+
loader: await moduleResolver.resolveModule('babel-loader'),
|
|
53
76
|
options: {
|
|
54
77
|
presets: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
78
|
+
await moduleResolver.resolveBabelModule('@babel/preset-env', {
|
|
79
|
+
config: {
|
|
58
80
|
targets: { node: '20' },
|
|
59
|
-
modules: false,
|
|
81
|
+
modules: false,
|
|
60
82
|
},
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
}),
|
|
84
|
+
await moduleResolver.resolveBabelModule('@babel/preset-typescript'),
|
|
85
|
+
],
|
|
86
|
+
plugins: [
|
|
87
|
+
await moduleResolver.resolveBabelModule('@babel/plugin-transform-typescript', {
|
|
88
|
+
config: { allowDeclareFields: true },
|
|
89
|
+
}),
|
|
63
90
|
],
|
|
64
|
-
plugins: [[resolve(cliPackageRoot, 'node_modules/@babel/plugin-transform-typescript'), { allowDeclareFields: true }]],
|
|
65
91
|
},
|
|
66
92
|
});
|
|
67
93
|
rules.push(tsRule);
|
|
68
94
|
}
|
|
69
|
-
// JavaScript Regeln
|
|
70
95
|
const jsRule = {
|
|
71
96
|
test: /\.js$/,
|
|
72
97
|
exclude: /node_modules/,
|
|
73
|
-
type: 'javascript/esm',
|
|
98
|
+
type: 'javascript/esm',
|
|
74
99
|
use: {
|
|
75
|
-
loader: 'babel-loader',
|
|
100
|
+
loader: await moduleResolver.resolveModule('babel-loader'),
|
|
76
101
|
options: {
|
|
77
102
|
presets: [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{
|
|
103
|
+
await moduleResolver.resolveBabelModule('@babel/preset-env', {
|
|
104
|
+
config: {
|
|
81
105
|
targets: { node: '20' },
|
|
82
|
-
modules: false,
|
|
106
|
+
modules: false,
|
|
83
107
|
},
|
|
84
|
-
|
|
108
|
+
}),
|
|
85
109
|
],
|
|
86
110
|
},
|
|
87
111
|
},
|
|
88
112
|
};
|
|
89
113
|
rules.push(jsRule);
|
|
90
|
-
// node-loader rule
|
|
91
114
|
rules.push({
|
|
92
115
|
test: /\.node$/,
|
|
93
|
-
loader: 'node-loader',
|
|
116
|
+
loader: await moduleResolver.resolveModule('node-loader'),
|
|
94
117
|
});
|
|
95
|
-
// JSON Regel
|
|
96
118
|
rules.push({
|
|
97
119
|
test: /\.json$/,
|
|
98
120
|
type: 'json',
|
|
99
121
|
});
|
|
100
122
|
return rules;
|
|
101
123
|
}
|
|
102
|
-
async function fileExists(path) {
|
|
103
|
-
try {
|
|
104
|
-
await readFile(path);
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
catch {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
async function loadConfig() {
|
|
112
|
-
const tsConfigPath = resolve(process.cwd(), 'cameraui.config.ts');
|
|
113
|
-
const jsConfigPath = resolve(process.cwd(), 'cameraui.config.js');
|
|
114
|
-
try {
|
|
115
|
-
if (await pathExists(tsConfigPath)) {
|
|
116
|
-
const asyncResult = await tsImport.load(tsConfigPath, { useCache: false });
|
|
117
|
-
const cacheDir = resolve(process.cwd(), '.cache');
|
|
118
|
-
await rm(cacheDir, { force: true, recursive: true });
|
|
119
|
-
return asyncResult.default || asyncResult;
|
|
120
|
-
}
|
|
121
|
-
if (await pathExists(jsConfigPath)) {
|
|
122
|
-
const config = await import(jsConfigPath);
|
|
123
|
-
return config.default || config;
|
|
124
|
-
}
|
|
125
|
-
return {};
|
|
126
|
-
}
|
|
127
|
-
catch (error) {
|
|
128
|
-
logger.buildError(error);
|
|
129
|
-
return {};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
124
|
export async function parseConfig() {
|
|
133
125
|
const userConfig = await loadConfig();
|
|
134
126
|
const cliRootDir = process.cwd();
|
|
135
127
|
const targetRootDir = userConfig.rootDir ? (isAbsolute(userConfig.rootDir) ? userConfig.rootDir : resolve(cliRootDir, userConfig.rootDir)) : cliRootDir;
|
|
136
128
|
const projectType = await detectJsProjectType(targetRootDir);
|
|
137
129
|
const outputDir = resolve(targetRootDir, 'bundle', 'dist');
|
|
138
|
-
|
|
130
|
+
// Determine entry point
|
|
139
131
|
let entry;
|
|
140
132
|
if (typeof userConfig.input === 'string') {
|
|
141
133
|
entry = resolve(targetRootDir, userConfig.input);
|
|
@@ -143,6 +135,7 @@ export async function parseConfig() {
|
|
|
143
135
|
else {
|
|
144
136
|
entry = resolve(targetRootDir, projectType.startsWith('typescript') ? 'src/index.ts' : 'src/index.js');
|
|
145
137
|
}
|
|
138
|
+
// Configure plugins
|
|
146
139
|
const plugins = [
|
|
147
140
|
new webpack.ProgressPlugin(),
|
|
148
141
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
@@ -153,11 +146,24 @@ export async function parseConfig() {
|
|
|
153
146
|
}),
|
|
154
147
|
];
|
|
155
148
|
if (userConfig.mode === 'development' && process.env.ANALYZE) {
|
|
149
|
+
const BundleAnalyzerPlugin = (await import('webpack-bundle-analyzer')).BundleAnalyzerPlugin;
|
|
156
150
|
plugins.push(new BundleAnalyzerPlugin({
|
|
157
151
|
generateStatsFile: true,
|
|
158
152
|
}));
|
|
159
153
|
}
|
|
160
|
-
|
|
154
|
+
// Get module rules
|
|
155
|
+
const moduleRules = await getModuleRules(projectType, targetRootDir);
|
|
156
|
+
// Get TerserPlugin instance
|
|
157
|
+
const terserPlugin = new (await import('terser-webpack-plugin')).default({
|
|
158
|
+
terserOptions: {
|
|
159
|
+
compress: {
|
|
160
|
+
typeofs: false,
|
|
161
|
+
},
|
|
162
|
+
module: true,
|
|
163
|
+
keep_classnames: true,
|
|
164
|
+
keep_fnames: true,
|
|
165
|
+
},
|
|
166
|
+
});
|
|
161
167
|
const webpackConfig = {
|
|
162
168
|
mode: userConfig.mode === 'development' ? 'development' : 'production',
|
|
163
169
|
target: 'node',
|
|
@@ -169,6 +175,7 @@ export async function parseConfig() {
|
|
|
169
175
|
assetModuleFilename: '[path][name][ext]',
|
|
170
176
|
},
|
|
171
177
|
resolve: {
|
|
178
|
+
...moduleResolver.getWebpackResolveConfig().resolve,
|
|
172
179
|
extensions: ['.ts', '.js', '.mjs', '.json'],
|
|
173
180
|
symlinks: true,
|
|
174
181
|
mainFields: ['node', 'module', 'main'],
|
|
@@ -177,9 +184,7 @@ export async function parseConfig() {
|
|
|
177
184
|
'.mjs': projectType.startsWith('typescript') ? ['.mts', '.mjs'] : ['.mjs'],
|
|
178
185
|
},
|
|
179
186
|
},
|
|
180
|
-
|
|
181
|
-
modules: [resolve(cliPackageRoot, 'node_modules')],
|
|
182
|
-
},
|
|
187
|
+
...moduleResolver.getWebpackLoaderConfig(),
|
|
183
188
|
module: {
|
|
184
189
|
rules: moduleRules,
|
|
185
190
|
},
|
|
@@ -187,7 +192,6 @@ export async function parseConfig() {
|
|
|
187
192
|
topLevelAwait: true,
|
|
188
193
|
},
|
|
189
194
|
externals: [
|
|
190
|
-
// Built-in Node.js modules
|
|
191
195
|
({ request }, callback) => {
|
|
192
196
|
if (!request) {
|
|
193
197
|
return callback();
|
|
@@ -213,18 +217,7 @@ export async function parseConfig() {
|
|
|
213
217
|
devtool: userConfig.mode === 'development' ? 'source-map' : false,
|
|
214
218
|
optimization: {
|
|
215
219
|
minimize: userConfig.mode !== 'development',
|
|
216
|
-
minimizer: [
|
|
217
|
-
new TerserPlugin({
|
|
218
|
-
terserOptions: {
|
|
219
|
-
compress: {
|
|
220
|
-
typeofs: false,
|
|
221
|
-
},
|
|
222
|
-
module: true,
|
|
223
|
-
keep_classnames: true,
|
|
224
|
-
keep_fnames: true,
|
|
225
|
-
},
|
|
226
|
-
}),
|
|
227
|
-
],
|
|
220
|
+
minimizer: [terserPlugin],
|
|
228
221
|
},
|
|
229
222
|
plugins,
|
|
230
223
|
stats: {
|
package/dist/utils/parser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../src/utils/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;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era.ui cli",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/core": "^7.26.0",
|
|
21
|
-
"@babel/plugin-transform-typescript": "^7.
|
|
21
|
+
"@babel/plugin-transform-typescript": "^7.26.3",
|
|
22
22
|
"@babel/preset-env": "^7.26.0",
|
|
23
23
|
"@babel/preset-typescript": "^7.26.0",
|
|
24
|
-
"@camera.ui/common": "^0.0.
|
|
24
|
+
"@camera.ui/common": "^0.0.36",
|
|
25
25
|
"adm-zip": "^0.5.16",
|
|
26
26
|
"babel-loader": "^9.2.1",
|
|
27
27
|
"chalk": "^5.3.0",
|
|
28
28
|
"commander": "^12.1.0",
|
|
29
29
|
"fs-extra": "^11.2.0",
|
|
30
30
|
"gradient-string": "^3.0.0",
|
|
31
|
-
"inquirer": "^12.
|
|
31
|
+
"inquirer": "^12.2.0",
|
|
32
32
|
"json-loader": "^0.5.7",
|
|
33
33
|
"node-loader": "^2.1.0",
|
|
34
34
|
"ora": "^8.1.1",
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"terser-webpack-plugin": "^5.3.10",
|
|
38
38
|
"ts-import": "^5.0.0-beta.0",
|
|
39
39
|
"ts-loader": "^9.5.1",
|
|
40
|
-
"webpack": "^5.
|
|
40
|
+
"webpack": "^5.97.1",
|
|
41
41
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
42
42
|
"webpack-cli": "^5.1.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@camera.ui/types": "^0.0.
|
|
45
|
+
"@camera.ui/types": "^0.0.84",
|
|
46
46
|
"@stylistic/eslint-plugin": "^2.11.0",
|
|
47
|
-
"@types/adm-zip": "^0.5.
|
|
47
|
+
"@types/adm-zip": "^0.5.7",
|
|
48
48
|
"@types/fs-extra": "^11.0.4",
|
|
49
|
-
"@types/node": "^22.
|
|
49
|
+
"@types/node": "^22.10.1",
|
|
50
50
|
"@types/prompts": "^2.4.9",
|
|
51
51
|
"@types/semver": "^7.5.8",
|
|
52
52
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
54
|
-
"eslint": "^9.
|
|
55
|
-
"globals": "^15.
|
|
56
|
-
"prettier": "^3.
|
|
53
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
54
|
+
"eslint": "^9.16.0",
|
|
55
|
+
"globals": "^15.13.0",
|
|
56
|
+
"prettier": "^3.4.2",
|
|
57
57
|
"rimraf": "^6.0.1",
|
|
58
|
-
"typescript": "^5.
|
|
59
|
-
"typescript-eslint": "^8.
|
|
58
|
+
"typescript": "^5.7.2",
|
|
59
|
+
"typescript-eslint": "^8.17.0",
|
|
60
60
|
"updates": "^16.4.0"
|
|
61
61
|
},
|
|
62
62
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
camera-ui-python-types==0.2.
|
|
1
|
+
camera-ui-python-types==0.2.5
|