eser 4.0.17 → 4.0.19
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/eser.js +22 -16
- package/package.json +1 -1
package/eser.js
CHANGED
|
@@ -6018,6 +6018,19 @@ var init_walk = __esm({
|
|
|
6018
6018
|
}
|
|
6019
6019
|
});
|
|
6020
6020
|
|
|
6021
|
+
// pkg/@eser/standards/patterns.ts
|
|
6022
|
+
var JS_FILE_EXTENSIONS;
|
|
6023
|
+
var init_patterns = __esm({
|
|
6024
|
+
"pkg/@eser/standards/patterns.ts"() {
|
|
6025
|
+
JS_FILE_EXTENSIONS = [
|
|
6026
|
+
"tsx",
|
|
6027
|
+
"jsx",
|
|
6028
|
+
"ts",
|
|
6029
|
+
"js"
|
|
6030
|
+
];
|
|
6031
|
+
}
|
|
6032
|
+
});
|
|
6033
|
+
|
|
6021
6034
|
// pkg/@eser/codebase/package/types.ts
|
|
6022
6035
|
var ConfigFileTypes, CONFIG_FILE_PRIORITY, baseDirProp, DEFAULT_FIELD_MAPPINGS;
|
|
6023
6036
|
var init_types3 = __esm({
|
|
@@ -8006,6 +8019,7 @@ var init_workspace_discovery = __esm({
|
|
|
8006
8019
|
"pkg/@eser/codebase/workspace-discovery.ts"() {
|
|
8007
8020
|
init_mod4();
|
|
8008
8021
|
init_walk();
|
|
8022
|
+
init_patterns();
|
|
8009
8023
|
init_mod8();
|
|
8010
8024
|
discoverPackages = async (root = ".") => {
|
|
8011
8025
|
const [_rootConfig, modules] = await getWorkspaceModules(root);
|
|
@@ -8027,7 +8041,7 @@ var init_workspace_discovery = __esm({
|
|
|
8027
8041
|
exports
|
|
8028
8042
|
];
|
|
8029
8043
|
}
|
|
8030
|
-
if (typeof exports === "object") {
|
|
8044
|
+
if (exports !== null && typeof exports === "object") {
|
|
8031
8045
|
const paths = [];
|
|
8032
8046
|
for (const value2 of Object.values(exports)) {
|
|
8033
8047
|
if (typeof value2 === "string") {
|
|
@@ -8047,10 +8061,7 @@ var init_workspace_discovery = __esm({
|
|
|
8047
8061
|
getPackageFiles = async (packagePath) => {
|
|
8048
8062
|
const files = [];
|
|
8049
8063
|
for await (const entry of walk(packagePath, {
|
|
8050
|
-
exts:
|
|
8051
|
-
".ts",
|
|
8052
|
-
".tsx"
|
|
8053
|
-
],
|
|
8064
|
+
exts: JS_FILE_EXTENSIONS,
|
|
8054
8065
|
includeDirs: false,
|
|
8055
8066
|
skip: [
|
|
8056
8067
|
/node_modules/,
|
|
@@ -8383,7 +8394,7 @@ var init_check_export_names = __esm({
|
|
|
8383
8394
|
}
|
|
8384
8395
|
continue;
|
|
8385
8396
|
}
|
|
8386
|
-
if (typeof exports === "object") {
|
|
8397
|
+
if (exports !== null && typeof exports === "object") {
|
|
8387
8398
|
for (const [key, value2] of Object.entries(exports)) {
|
|
8388
8399
|
if (!isKebabCase(key, ignoreWords)) {
|
|
8389
8400
|
violations.push({
|
|
@@ -8595,18 +8606,13 @@ var init_docs = __esm({
|
|
|
8595
8606
|
});
|
|
8596
8607
|
|
|
8597
8608
|
// pkg/@eser/codebase/check-licenses.ts
|
|
8598
|
-
var
|
|
8609
|
+
var EXCLUDES, BASE_YEAR, RX_COPYRIGHT, COPYRIGHT, validateLicenses;
|
|
8599
8610
|
var init_check_licenses = __esm({
|
|
8600
8611
|
async "pkg/@eser/codebase/check-licenses.ts"() {
|
|
8601
8612
|
init_mod4();
|
|
8602
8613
|
init_walk();
|
|
8614
|
+
init_patterns();
|
|
8603
8615
|
init_mod2();
|
|
8604
|
-
EXTENSIONS = [
|
|
8605
|
-
"*.js",
|
|
8606
|
-
".ts",
|
|
8607
|
-
"*.jsx",
|
|
8608
|
-
".tsx"
|
|
8609
|
-
];
|
|
8610
8616
|
EXCLUDES = [
|
|
8611
8617
|
/docs\/*$/,
|
|
8612
8618
|
/etc\/coverage\/*$/,
|
|
@@ -8630,7 +8636,7 @@ var init_check_licenses = __esm({
|
|
|
8630
8636
|
let checked = 0;
|
|
8631
8637
|
let fixedCount = 0;
|
|
8632
8638
|
for await (const entry of walk(root, {
|
|
8633
|
-
exts:
|
|
8639
|
+
exts: JS_FILE_EXTENSIONS,
|
|
8634
8640
|
skip: EXCLUDES,
|
|
8635
8641
|
includeDirs: false
|
|
8636
8642
|
})) {
|
|
@@ -10547,7 +10553,7 @@ var CommandBuilder = class _CommandBuilder {
|
|
|
10547
10553
|
...currentEnv,
|
|
10548
10554
|
[keyOrVars]: value2
|
|
10549
10555
|
};
|
|
10550
|
-
} else if (typeof keyOrVars === "object") {
|
|
10556
|
+
} else if (keyOrVars !== null && typeof keyOrVars === "object") {
|
|
10551
10557
|
newEnv = {
|
|
10552
10558
|
...currentEnv,
|
|
10553
10559
|
...keyOrVars
|
|
@@ -12228,7 +12234,7 @@ var systemCommand = new Command("system").description("Commands related with thi
|
|
|
12228
12234
|
// pkg/@eser/cli/package.json
|
|
12229
12235
|
var package_default = {
|
|
12230
12236
|
name: "@eser/cli",
|
|
12231
|
-
version: "4.0.
|
|
12237
|
+
version: "4.0.19",
|
|
12232
12238
|
type: "module",
|
|
12233
12239
|
exports: "./main.ts",
|
|
12234
12240
|
bin: {
|