react-scanner-ui 0.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/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # react-scanner-ui
2
+ A dashboard generator that transforms 'react-scanner' output into a portable, interactive component usage inventory and insights
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function buildCommand(program: Command): void;
3
+ //# sourceMappingURL=build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQnD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildCommand = buildCommand;
4
+ const dependencies_1 = require("../utils/dependencies");
5
+ function buildCommand(program) {
6
+ program
7
+ .command('build')
8
+ .description('Coming soon')
9
+ .action(() => {
10
+ (0, dependencies_1.checkPeerDependency)();
11
+ console.log('Coming soon...');
12
+ });
13
+ }
14
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;AAGA,oCAQC;AAVD,wDAA4D;AAE5D,SAAgB,YAAY,CAAC,OAAgB;IAC3C,OAAO;SACJ,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,aAAa,CAAC;SAC1B,MAAM,CAAC,GAAG,EAAE;QACX,IAAA,kCAAmB,GAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { infoCommand } from './info';
2
+ export { initCommand } from './init';
3
+ export { startCommand } from './start';
4
+ export { buildCommand } from './build';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildCommand = exports.startCommand = exports.initCommand = exports.infoCommand = void 0;
4
+ var info_1 = require("./info");
5
+ Object.defineProperty(exports, "infoCommand", { enumerable: true, get: function () { return info_1.infoCommand; } });
6
+ var init_1 = require("./init");
7
+ Object.defineProperty(exports, "initCommand", { enumerable: true, get: function () { return init_1.initCommand; } });
8
+ var start_1 = require("./start");
9
+ Object.defineProperty(exports, "startCommand", { enumerable: true, get: function () { return start_1.startCommand; } });
10
+ var build_1 = require("./build");
11
+ Object.defineProperty(exports, "buildCommand", { enumerable: true, get: function () { return build_1.buildCommand; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;AAAA,+BAAqC;AAA5B,mGAAA,WAAW,OAAA;AACpB,+BAAqC;AAA5B,mGAAA,WAAW,OAAA;AACpB,iCAAuC;AAA9B,qGAAA,YAAY,OAAA;AACrB,iCAAuC;AAA9B,qGAAA,YAAY,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function infoCommand(program: Command): void;
3
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAOlD"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.infoCommand = infoCommand;
4
+ function infoCommand(program) {
5
+ program
6
+ .command('info')
7
+ .description('Coming soon')
8
+ .action(() => {
9
+ console.log('Coming soon...');
10
+ });
11
+ }
12
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":";;AAEA,kCAOC;AAPD,SAAgB,WAAW,CAAC,OAAgB;IAC1C,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,aAAa,CAAC;SAC1B,MAAM,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function initCommand(program: Command): void;
3
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiBlD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initCommand = initCommand;
4
+ const utils_1 = require("../utils");
5
+ function initCommand(program) {
6
+ program
7
+ .command('init')
8
+ .description('Initialize react-scanner configuration')
9
+ .action(async () => {
10
+ if (!(0, utils_1.isReactScannerInstalled)()) {
11
+ const shouldInstall = await (0, utils_1.promptInstallReactScanner)();
12
+ if (shouldInstall) {
13
+ (0, utils_1.installReactScanner)();
14
+ }
15
+ else {
16
+ console.log('react-scanner is required to continue. Exiting.');
17
+ process.exit(1);
18
+ }
19
+ }
20
+ (0, utils_1.createReactScannerConfig)();
21
+ console.log('Initialization complete.');
22
+ });
23
+ }
24
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;AAQA,kCAiBC;AAxBD,oCAKkB;AAElB,SAAgB,WAAW,CAAC,OAAgB;IAC1C,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,wCAAwC,CAAC;SACrD,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,IAAI,CAAC,IAAA,+BAAuB,GAAE,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAyB,GAAE,CAAC;YACxD,IAAI,aAAa,EAAE,CAAC;gBAClB,IAAA,2BAAmB,GAAE,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;gBAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;QACH,CAAC;QACD,IAAA,gCAAwB,GAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function startCommand(program: Command): void;
3
+ //# sourceMappingURL=start.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAQnD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.startCommand = startCommand;
4
+ const dependencies_1 = require("../utils/dependencies");
5
+ function startCommand(program) {
6
+ program
7
+ .command('start')
8
+ .description('Coming soon')
9
+ .action(() => {
10
+ (0, dependencies_1.checkPeerDependency)();
11
+ console.log('Coming soon...');
12
+ });
13
+ }
14
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";;AAGA,oCAQC;AAVD,wDAA4D;AAE5D,SAAgB,YAAY,CAAC,OAAgB;IAC3C,OAAO;SACJ,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,aAAa,CAAC;SAC1B,MAAM,CAAC,GAAG,EAAE;QACX,IAAA,kCAAmB,GAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const commander_1 = require("commander");
5
+ const commands_1 = require("./commands");
6
+ const program = new commander_1.Command();
7
+ program
8
+ .name('react-scanner-ui')
9
+ .description('A CLI application built with Commander.js')
10
+ .version('1.0.0');
11
+ // Register commands
12
+ (0, commands_1.infoCommand)(program);
13
+ (0, commands_1.initCommand)(program);
14
+ (0, commands_1.startCommand)(program);
15
+ (0, commands_1.buildCommand)(program);
16
+ program.parse();
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,yCAAoC;AACpC,yCAAkF;AAElF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,kBAAkB,CAAC;KACxB,WAAW,CAAC,2CAA2C,CAAC;KACxD,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,oBAAoB;AACpB,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC;AACrB,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC;AACrB,IAAA,uBAAY,EAAC,OAAO,CAAC,CAAC;AACtB,IAAA,uBAAY,EAAC,OAAO,CAAC,CAAC;AAEtB,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function createReactScannerConfig(): void;
2
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAGA,wBAAgB,wBAAwB,IAAI,IAAI,CAwB/C"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createReactScannerConfig = createReactScannerConfig;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ function createReactScannerConfig() {
7
+ const configPath = (0, path_1.join)(process.cwd(), 'react-scanner.config.js');
8
+ if ((0, fs_1.existsSync)(configPath)) {
9
+ console.log('react-scanner.config.js already exists.');
10
+ return;
11
+ }
12
+ const configContent = `module.exports = {
13
+ crawlFrom: './src',
14
+ includeSubComponents: true,
15
+ importedFrom: 'PLACEHOLDER_FOR_IMPORTED_FROM',
16
+ processors: [
17
+ ['raw-report', { outputDir: './.scans' }],
18
+ ],
19
+ };
20
+ `;
21
+ try {
22
+ (0, fs_1.writeFileSync)(configPath, configContent);
23
+ console.log('Created react-scanner.config.js');
24
+ }
25
+ catch (error) {
26
+ console.error('Failed to create react-scanner.config.js', error);
27
+ }
28
+ }
29
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":";;AAGA,4DAwBC;AA3BD,2BAA+C;AAC/C,+BAA4B;AAE5B,SAAgB,wBAAwB;IACtC,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,yBAAyB,CAAC,CAAC;IAElE,IAAI,IAAA,eAAU,EAAC,UAAU,CAAC,EAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO;IACT,CAAC;IAED,MAAM,aAAa,GAAG;;;;;;;;CAQvB,CAAC;IAEA,IAAI,CAAC;QACH,IAAA,kBAAa,EAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IACjD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,0CAA0C,EAAE,KAAK,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function isReactScannerInstalled(): boolean;
2
+ export declare function checkPeerDependency(): boolean;
3
+ export declare function promptInstallReactScanner(): Promise<boolean>;
4
+ export declare function installReactScanner(): void;
5
+ //# sourceMappingURL=dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/utils/dependencies.ts"],"names":[],"mappings":"AAIA,wBAAgB,uBAAuB,IAAI,OAAO,CAOjD;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAU7C;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC,CAYlE;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CA2B1C"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isReactScannerInstalled = isReactScannerInstalled;
4
+ exports.checkPeerDependency = checkPeerDependency;
5
+ exports.promptInstallReactScanner = promptInstallReactScanner;
6
+ exports.installReactScanner = installReactScanner;
7
+ const fs_1 = require("fs");
8
+ const child_process_1 = require("child_process");
9
+ const readline_1 = require("readline");
10
+ function isReactScannerInstalled() {
11
+ try {
12
+ require.resolve('react-scanner');
13
+ return true;
14
+ }
15
+ catch {
16
+ return false;
17
+ }
18
+ }
19
+ function checkPeerDependency() {
20
+ if (!isReactScannerInstalled()) {
21
+ console.error('Error: react-scanner is not installed.');
22
+ console.error('Please install it by running:');
23
+ console.error(' npm install react-scanner');
24
+ console.error(' or');
25
+ console.error(' yarn add react-scanner');
26
+ process.exit(1);
27
+ }
28
+ return true;
29
+ }
30
+ async function promptInstallReactScanner() {
31
+ const rl = (0, readline_1.createInterface)({
32
+ input: process.stdin,
33
+ output: process.stdout,
34
+ });
35
+ return new Promise((resolve) => {
36
+ rl.question('react-scanner is required. Would you like to install it? (y/n): ', (answer) => {
37
+ rl.close();
38
+ resolve(answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes');
39
+ });
40
+ });
41
+ }
42
+ function installReactScanner() {
43
+ console.log('Installing react-scanner...');
44
+ try {
45
+ const useYarn = (0, fs_1.existsSync)('yarn.lock');
46
+ let isWorkspace = false;
47
+ if ((0, fs_1.existsSync)('package.json')) {
48
+ const packageContent = (0, fs_1.readFileSync)('package.json', 'utf-8');
49
+ const packageJson = JSON.parse(packageContent);
50
+ if (packageJson.workspaces) {
51
+ isWorkspace = true;
52
+ }
53
+ }
54
+ let command;
55
+ if (useYarn) {
56
+ command = `yarn add react-scanner --dev${isWorkspace ? ' -W' : ''}`;
57
+ }
58
+ else {
59
+ command = 'npm install react-scanner --save-dev';
60
+ }
61
+ (0, child_process_1.execSync)(command, { stdio: 'inherit' });
62
+ console.log('react-scanner installed successfully!');
63
+ }
64
+ catch (error) {
65
+ console.error('Failed to install react-scanner. Please install it manually.');
66
+ process.exit(1);
67
+ }
68
+ }
69
+ //# sourceMappingURL=dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../src/utils/dependencies.ts"],"names":[],"mappings":";;AAIA,0DAOC;AAED,kDAUC;AAED,8DAYC;AAED,kDA2BC;AAlED,2BAA8C;AAC9C,iDAAyC;AACzC,uCAA2C;AAE3C,SAAgB,uBAAuB;IACrC,IAAI,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAgB,mBAAmB;IACjC,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC;QAC/B,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACxD,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC/C,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAC7C,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAEM,KAAK,UAAU,yBAAyB;IAC7C,MAAM,EAAE,GAAG,IAAA,0BAAe,EAAC;QACzB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,EAAE,CAAC,QAAQ,CAAC,kEAAkE,EAAE,CAAC,MAAM,EAAE,EAAE;YACzF,EAAE,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,mBAAmB;IACjC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAA,eAAU,EAAC,WAAW,CAAC,CAAC;QACxC,IAAI,WAAW,GAAG,KAAK,CAAC;QAExB,IAAI,IAAA,eAAU,EAAC,cAAc,CAAC,EAAE,CAAC;YAC/B,MAAM,cAAc,GAAG,IAAA,iBAAY,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;YAC7D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC/C,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC;gBAC3B,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC;QACZ,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,GAAG,+BAA+B,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACtE,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,sCAAsC,CAAC;QACnD,CAAC;QAED,IAAA,wBAAQ,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { isReactScannerInstalled, checkPeerDependency, promptInstallReactScanner, installReactScanner, } from './dependencies';
2
+ export { createReactScannerConfig } from './config';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createReactScannerConfig = exports.installReactScanner = exports.promptInstallReactScanner = exports.checkPeerDependency = exports.isReactScannerInstalled = void 0;
4
+ var dependencies_1 = require("./dependencies");
5
+ Object.defineProperty(exports, "isReactScannerInstalled", { enumerable: true, get: function () { return dependencies_1.isReactScannerInstalled; } });
6
+ Object.defineProperty(exports, "checkPeerDependency", { enumerable: true, get: function () { return dependencies_1.checkPeerDependency; } });
7
+ Object.defineProperty(exports, "promptInstallReactScanner", { enumerable: true, get: function () { return dependencies_1.promptInstallReactScanner; } });
8
+ Object.defineProperty(exports, "installReactScanner", { enumerable: true, get: function () { return dependencies_1.installReactScanner; } });
9
+ var config_1 = require("./config");
10
+ Object.defineProperty(exports, "createReactScannerConfig", { enumerable: true, get: function () { return config_1.createReactScannerConfig; } });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,+CAKwB;AAJtB,uHAAA,uBAAuB,OAAA;AACvB,mHAAA,mBAAmB,OAAA;AACnB,yHAAA,yBAAyB,OAAA;AACzB,mHAAA,mBAAmB,OAAA;AAErB,mCAAoD;AAA3C,kHAAA,wBAAwB,OAAA"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "react-scanner-ui",
3
+ "version": "0.0.1",
4
+ "main": "dist/index.js",
5
+ "bin": {
6
+ "react-scanner-ui": "dist/index.js"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/vimalmunjani/react-scanner-ui.git"
11
+ },
12
+ "author": "Vimal Munjani <vimal.j.munjani@gmail.com>",
13
+ "license": "MIT",
14
+ "publishConfig": {
15
+ "registry": "https://registry.npmjs.org/"
16
+ },
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "start": "node dist/index.js",
20
+ "dev": "ts-node src/index.ts",
21
+ "prepublishOnly": "yarn build",
22
+ "publish:npm": "yarn build && npm publish"
23
+ },
24
+ "dependencies": {
25
+ "commander": "^14.0.2"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^25.0.3",
29
+ "ts-node": "^10.9.2",
30
+ "typescript": "^5.9.3"
31
+ }
32
+ }