@genesislcap/ts-builder 15.19.0 → 15.19.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/package.json +3 -4
- package/src/index.ts +0 -68
- package/src/react-wrapper-generator.ts +0 -1309
- package/src/resolve-cem-config-path.ts +0 -24
- package/tsconfig.json +0 -11
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { existsSync } from 'node:fs';
|
|
2
|
-
import { basename, resolve } from 'node:path';
|
|
3
|
-
|
|
4
|
-
const CEM_CONFIG_FILENAMES = [
|
|
5
|
-
'custom-elements-manifest.config.js',
|
|
6
|
-
'custom-elements-manifest.config.mjs',
|
|
7
|
-
'custom-elements-manifest.config.cjs',
|
|
8
|
-
'custom-elements-manifest.config.ts',
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
/** Resolves the CEM config file in `cwd`. Shell globs like `config.*js` are unreliable on Windows. */
|
|
12
|
-
export function resolveCEMConfigPath(cwd: string): string | null {
|
|
13
|
-
for (const name of CEM_CONFIG_FILENAMES) {
|
|
14
|
-
const path = resolve(cwd, name);
|
|
15
|
-
if (existsSync(path)) return path;
|
|
16
|
-
}
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** Returns the config filename for use with `cem analyze --config` when cwd is the package root. */
|
|
21
|
-
export function resolveCEMConfigArg(cwd: string): string | null {
|
|
22
|
-
const path = resolveCEMConfigPath(cwd);
|
|
23
|
-
return path ? basename(path) : null;
|
|
24
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/react-wrapper-generator.ts","./src/resolve-cem-config-path.ts"],"version":"5.9.2"}
|