@storm-software/workspace-tools 1.41.1 → 1.42.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/config/nx.json +10 -15
- package/index.js +56 -38
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +3 -1
- package/src/executors/design-tokens/executor.js +3 -1
- package/src/executors/tsup/executor.js +83944 -83923
- package/src/executors/tsup-browser/executor.js +53 -33
- package/src/executors/tsup-neutral/executor.js +52 -33
- package/src/executors/tsup-node/executor.js +54 -34
- package/src/generators/browser-library/generator.js +3 -1
- package/src/generators/config-schema/generator.js +3 -1
- package/src/generators/neutral-library/generator.js +3 -1
- package/src/generators/node-library/generator.js +3 -1
- package/src/generators/preset/files/biome.json +4 -0
- package/src/generators/preset/files/lefthook.json +6 -0
- package/src/generators/preset/generator.js +3 -1
- package/src/generators/preset/files/.husky/post-checkout +0 -5
- package/src/generators/preset/files/.husky/post-commit +0 -4
- package/src/generators/preset/files/.husky/post-merge +0 -5
- package/src/generators/preset/files/.husky/pre-commit +0 -4
- package/src/generators/preset/files/.husky/pre-push +0 -4
- package/src/generators/preset/files/eslint.config.js +0 -59
|
@@ -26293,7 +26293,9 @@ var getConfigFile = async (filePath) => {
|
|
|
26293
26293
|
return void 0;
|
|
26294
26294
|
}
|
|
26295
26295
|
const config = cosmiconfigResult.config ?? {};
|
|
26296
|
-
|
|
26296
|
+
if (cosmiconfigResult.filepath) {
|
|
26297
|
+
config.configFile = cosmiconfigResult.filepath;
|
|
26298
|
+
}
|
|
26297
26299
|
config.runtimeVersion = "0.0.1";
|
|
26298
26300
|
_static_cache = config;
|
|
26299
26301
|
return config;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const { FlatCompat } = require("@eslint/eslintrc");
|
|
2
|
-
const nxEslintPlugin = require("@nx/eslint-plugin");
|
|
3
|
-
const typescriptConfig = require("@storm-software/linting-tools/eslint/typescript");
|
|
4
|
-
const javascriptConfig = require("@storm-software/linting-tools/eslint/javascript");
|
|
5
|
-
const graphqlConfig = require("@storm-software/linting-tools/eslint/graphql");
|
|
6
|
-
const jestConfig = require("@storm-software/linting-tools/eslint/jest");
|
|
7
|
-
const jsonConfig = require("@storm-software/linting-tools/eslint/json");
|
|
8
|
-
const reactConfig = require("@storm-software/linting-tools/eslint/react");
|
|
9
|
-
const nextConfig = require("@storm-software/linting-tools/eslint/next");
|
|
10
|
-
|
|
11
|
-
const js = require("@eslint/js");
|
|
12
|
-
const compat = new FlatCompat({
|
|
13
|
-
baseDirectory: __dirname,
|
|
14
|
-
recommendedConfig: js.configs.recommended
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
module.exports = [
|
|
18
|
-
{ plugins: { "@nx": nxEslintPlugin } },
|
|
19
|
-
...compat.config({ parser: "jsonc-eslint-parser" }).map(config => ({
|
|
20
|
-
...config,
|
|
21
|
-
files: ["**/*.json"],
|
|
22
|
-
rules: {}
|
|
23
|
-
})),
|
|
24
|
-
{
|
|
25
|
-
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
26
|
-
rules: {
|
|
27
|
-
"@nx/enforce-module-boundaries": [
|
|
28
|
-
"error",
|
|
29
|
-
{
|
|
30
|
-
enforceBuildableLibDependency: true,
|
|
31
|
-
allow: [],
|
|
32
|
-
depConstraints: [
|
|
33
|
-
{
|
|
34
|
-
sourceTag: "*",
|
|
35
|
-
onlyDependOnLibsWithTags: ["*"]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
...compat.config({ extends: ["plugin:@nx/typescript"] }).map(config => ({
|
|
43
|
-
...config,
|
|
44
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
45
|
-
rules: {}
|
|
46
|
-
})),
|
|
47
|
-
...compat.config({ extends: ["plugin:@nx/javascript"] }).map(config => ({
|
|
48
|
-
...config,
|
|
49
|
-
files: ["**/*.js", "**/*.jsx"],
|
|
50
|
-
rules: {}
|
|
51
|
-
})),
|
|
52
|
-
...compat.config(typescriptConfig),
|
|
53
|
-
...compat.config(javascriptConfig),
|
|
54
|
-
...compat.config(graphqlConfig),
|
|
55
|
-
...compat.config(jestConfig),
|
|
56
|
-
...compat.config(jsonConfig),
|
|
57
|
-
...compat.config(reactConfig),
|
|
58
|
-
...compat.config(nextConfig)
|
|
59
|
-
];
|