@storm-software/workspace-tools 1.264.27 → 1.265.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 +12 -0
- package/README.md +1 -1
- package/dist/chunk-6WOWZO7V.mjs +468 -0
- package/dist/chunk-OQTJDGUH.js +468 -0
- package/dist/src/plugins/typescript/index.d.mts +1 -1
- package/dist/src/plugins/typescript/index.d.ts +1 -1
- package/dist/src/plugins/typescript/index.js +2 -2
- package/dist/src/plugins/typescript/index.mjs +3 -3
- package/dist/src/plugins/typescript/project-config.d.mts +3 -3
- package/dist/src/plugins/typescript/project-config.d.ts +3 -3
- package/dist/src/plugins/typescript/project-config.js +2 -2
- package/dist/src/plugins/typescript/project-config.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-EPP63VOO.js +0 -450
- package/dist/chunk-RLG36VMZ.mjs +0 -450
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkUF6KFXG5js = require('./chunk-UF6KFXG5.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk7YRW5HNXjs = require('./chunk-7YRW5HNX.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
13
|
+
|
|
14
|
+
// src/plugins/typescript/project-config.ts
|
|
15
|
+
var _devkit = require('@nx/devkit');
|
|
16
|
+
var _fs = require('fs');
|
|
17
|
+
var _path = require('path');
|
|
18
|
+
var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
19
|
+
var _fileutils = require('nx/src/utils/fileutils');
|
|
20
|
+
var _packagejson = require('nx/src/utils/package-json');
|
|
21
|
+
var _pkgtypes = require('pkg-types');
|
|
22
|
+
var name = "storm-software/typescript";
|
|
23
|
+
var createNodesV2 = [
|
|
24
|
+
"{project.json,**/project.json}",
|
|
25
|
+
async (configFiles, options = {
|
|
26
|
+
includeApps: true
|
|
27
|
+
}, context) => {
|
|
28
|
+
return await _devkit.createNodesFromFiles.call(void 0, async (file, options2 = {
|
|
29
|
+
includeApps: true
|
|
30
|
+
}, context2) => {
|
|
31
|
+
try {
|
|
32
|
+
const packageJson = createPackageJson(file, context2.workspaceRoot);
|
|
33
|
+
if (!packageJson) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
const tsconfig = await createTsconfig(file, context2.workspaceRoot);
|
|
37
|
+
if (!tsconfig) {
|
|
38
|
+
return [];
|
|
39
|
+
}
|
|
40
|
+
const project = createProjectFromPackageJsonNextToProjectJson(file, packageJson);
|
|
41
|
+
if (_optionalChain([options2, 'optionalAccess', _ => _.includeApps]) === false && project.projectType === "application") {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
let relativeRoot = project.root.replaceAll("\\", "/").replace(context2.workspaceRoot.replaceAll("\\", "/"), "");
|
|
45
|
+
if (relativeRoot.startsWith("/")) {
|
|
46
|
+
relativeRoot = relativeRoot.slice(1);
|
|
47
|
+
}
|
|
48
|
+
const enableMarkdownlint = _optionalChain([options2, 'optionalAccess', _2 => _2.enableMarkdownlint]) !== false;
|
|
49
|
+
const enableEslint = _optionalChain([options2, 'optionalAccess', _3 => _3.enableEslint]) !== false;
|
|
50
|
+
const nxJson = _nxjsonjs.readNxJson.call(void 0, context2.workspaceRoot);
|
|
51
|
+
const targets = _packagejson.readTargetsFromPackageJson.call(void 0, packageJson, nxJson);
|
|
52
|
+
if (_path.join.call(void 0, context2.workspaceRoot, project.root).startsWith(_path.join.call(void 0, context2.workspaceRoot, "tools")) && _optionalChain([options2, 'optionalAccess', _4 => _4.lintInternalTools]) !== true) {
|
|
53
|
+
targets.lint = {
|
|
54
|
+
dependsOn: [
|
|
55
|
+
"^lint"
|
|
56
|
+
],
|
|
57
|
+
executor: "nx:run-commands",
|
|
58
|
+
options: {
|
|
59
|
+
command: "echo 'Skipping linting of internal tools package \"{projectName}\". This can be changed by setting `lintInternalTools` to `true` in the Storm TypeScript plugin options.' "
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
} else {
|
|
63
|
+
if (!targets["lint-ls"]) {
|
|
64
|
+
targets["lint-ls"] = {
|
|
65
|
+
cache: true,
|
|
66
|
+
inputs: [
|
|
67
|
+
"linting",
|
|
68
|
+
"typescript",
|
|
69
|
+
"^production"
|
|
70
|
+
],
|
|
71
|
+
dependsOn: [
|
|
72
|
+
"^lint-ls"
|
|
73
|
+
],
|
|
74
|
+
executor: "nx:run-commands",
|
|
75
|
+
options: {
|
|
76
|
+
command: 'pnpm exec ls-lint --config="node_modules/@storm-software/linting-tools/ls-lint/.ls-lint.yml" '
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
if (!targets["lint-markdown"] && enableMarkdownlint) {
|
|
81
|
+
targets["lint-markdown"] = {
|
|
82
|
+
cache: true,
|
|
83
|
+
outputs: [
|
|
84
|
+
"{projectRoot}/**/*.md",
|
|
85
|
+
"{projectRoot}/**/*.mdx"
|
|
86
|
+
],
|
|
87
|
+
inputs: [
|
|
88
|
+
"linting",
|
|
89
|
+
"{projectRoot}/**/*.md",
|
|
90
|
+
"{projectRoot}/**/*.mdx"
|
|
91
|
+
],
|
|
92
|
+
dependsOn: [
|
|
93
|
+
"^lint-markdown"
|
|
94
|
+
],
|
|
95
|
+
executor: "nx:run-commands",
|
|
96
|
+
options: {
|
|
97
|
+
command: 'pnpm exec markdownlint-cli2 "{projectRoot}/*.{md,mdx}" "{projectRoot}/**/*.{md,mdx}" --config "node_modules/@storm-software/markdownlint/config/base.markdownlint-cli2.jsonc" --fix'
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
if (!targets.lint && enableEslint) {
|
|
102
|
+
let eslintConfig = checkEslintConfigAtPath(project.root);
|
|
103
|
+
if (!eslintConfig) {
|
|
104
|
+
eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
|
|
105
|
+
}
|
|
106
|
+
if (eslintConfig) {
|
|
107
|
+
targets.lint = {
|
|
108
|
+
cache: true,
|
|
109
|
+
inputs: [
|
|
110
|
+
"linting",
|
|
111
|
+
"typescript",
|
|
112
|
+
"^production"
|
|
113
|
+
],
|
|
114
|
+
outputs: [
|
|
115
|
+
"{projectRoot}/**/*.{ts,tsx,js,jsx,json,md,mdx,yaml,yml,html,css,scss,sass,less,graphql,gql}"
|
|
116
|
+
],
|
|
117
|
+
dependsOn: [
|
|
118
|
+
"lint-markdown",
|
|
119
|
+
"lint-knip",
|
|
120
|
+
"^lint"
|
|
121
|
+
],
|
|
122
|
+
executor: "@nx/eslint:lint",
|
|
123
|
+
options: {
|
|
124
|
+
format: "stylish",
|
|
125
|
+
fix: true,
|
|
126
|
+
errorOnUnmatchedPattern: false,
|
|
127
|
+
cache: true,
|
|
128
|
+
cacheLocation: "{workspaceRoot}/node_modules/.cache/eslint/{projectRoot}",
|
|
129
|
+
eslintConfig
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (!targets["format-toml"]) {
|
|
136
|
+
targets["format-toml"] = {
|
|
137
|
+
inputs: [
|
|
138
|
+
"linting",
|
|
139
|
+
"{projectRoot}/**/*.toml"
|
|
140
|
+
],
|
|
141
|
+
outputs: [
|
|
142
|
+
"{projectRoot}/**/*.toml"
|
|
143
|
+
],
|
|
144
|
+
dependsOn: [
|
|
145
|
+
"^format-toml"
|
|
146
|
+
],
|
|
147
|
+
executor: "nx:run-commands",
|
|
148
|
+
options: {
|
|
149
|
+
command: 'pnpm exec taplo format --config="node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="node_modules/.cache/taplo/{projectRoot}" --colors="always" "{projectRoot}/*.toml" "{projectRoot}/**/*.toml" '
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
if (!targets["format-readme"]) {
|
|
154
|
+
targets["format-readme"] = {
|
|
155
|
+
inputs: [
|
|
156
|
+
"linting",
|
|
157
|
+
"documentation",
|
|
158
|
+
"{projectRoot}/{README.md,package.json,Cargo.toml,executors.json,generators.json}"
|
|
159
|
+
],
|
|
160
|
+
outputs: [
|
|
161
|
+
"{projectRoot}/README.md"
|
|
162
|
+
],
|
|
163
|
+
dependsOn: [
|
|
164
|
+
"^format-readme"
|
|
165
|
+
],
|
|
166
|
+
executor: "nx:run-commands",
|
|
167
|
+
options: {
|
|
168
|
+
command: 'pnpm exec storm-git readme --templates="tools/readme-templates" --project="{projectName}"'
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
if (!targets["format-prettier"]) {
|
|
173
|
+
targets["format-prettier"] = {
|
|
174
|
+
inputs: [
|
|
175
|
+
"linting",
|
|
176
|
+
"typescript",
|
|
177
|
+
"^production"
|
|
178
|
+
],
|
|
179
|
+
outputs: [
|
|
180
|
+
"{projectRoot}/**/*"
|
|
181
|
+
],
|
|
182
|
+
dependsOn: [
|
|
183
|
+
"^format-prettier"
|
|
184
|
+
],
|
|
185
|
+
executor: "nx:run-commands",
|
|
186
|
+
options: {
|
|
187
|
+
command: 'pnpm exec prettier "{projectRoot}/**/*" --write --ignore-unknown --no-error-on-unmatched-pattern --config="node_modules/@storm-software/prettier/config.json" --ignore-path="node_modules/@storm-software/prettier/.prettierignore" --cache --cache-location="node_modules/.cache/prettier/{projectRoot}" '
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
if (!targets.format) {
|
|
192
|
+
targets.format = {
|
|
193
|
+
dependsOn: [
|
|
194
|
+
"format-readme",
|
|
195
|
+
"format-toml",
|
|
196
|
+
"format-prettier",
|
|
197
|
+
"^format"
|
|
198
|
+
],
|
|
199
|
+
executor: "nx:run-commands",
|
|
200
|
+
options: {
|
|
201
|
+
command: `echo 'Formatting the project files in "{projectRoot}"' `
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (!targets.clean) {
|
|
206
|
+
targets.clean = {
|
|
207
|
+
cache: true,
|
|
208
|
+
executor: "nx:run-commands",
|
|
209
|
+
inputs: [
|
|
210
|
+
"typescript",
|
|
211
|
+
"^production"
|
|
212
|
+
],
|
|
213
|
+
outputs: [
|
|
214
|
+
"{workspaceRoot}/dist/{projectRoot}"
|
|
215
|
+
],
|
|
216
|
+
options: {
|
|
217
|
+
command: "pnpm exec rimraf dist/{projectRoot}",
|
|
218
|
+
color: true,
|
|
219
|
+
cwd: "{workspaceRoot}"
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
if (!targets.rebuild) {
|
|
224
|
+
targets.rebuild = {
|
|
225
|
+
cache: false,
|
|
226
|
+
executor: "nx:run-commands",
|
|
227
|
+
dependsOn: [
|
|
228
|
+
"clean",
|
|
229
|
+
"^build"
|
|
230
|
+
],
|
|
231
|
+
inputs: [
|
|
232
|
+
"typescript",
|
|
233
|
+
"default",
|
|
234
|
+
"^production"
|
|
235
|
+
],
|
|
236
|
+
outputs: [
|
|
237
|
+
"{workspaceRoot}/dist/{projectRoot}"
|
|
238
|
+
],
|
|
239
|
+
options: {
|
|
240
|
+
command: `pnpm exec nx run ${project.name}:build`
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
if (!targets.test && checkJestConfigAtPath(project.root)) {
|
|
245
|
+
targets.test = {
|
|
246
|
+
cache: true,
|
|
247
|
+
executor: "@nx/jest:jest",
|
|
248
|
+
inputs: [
|
|
249
|
+
"testing",
|
|
250
|
+
"typescript",
|
|
251
|
+
"^production"
|
|
252
|
+
],
|
|
253
|
+
outputs: [
|
|
254
|
+
"{workspaceRoot}/coverage/{projectRoot}"
|
|
255
|
+
],
|
|
256
|
+
defaultConfiguration: "development",
|
|
257
|
+
options: {
|
|
258
|
+
jestConfig: "{projectRoot}/jest.config.ts",
|
|
259
|
+
passWithNoTests: true
|
|
260
|
+
},
|
|
261
|
+
configurations: {
|
|
262
|
+
development: {
|
|
263
|
+
ci: false,
|
|
264
|
+
codeCoverage: true
|
|
265
|
+
},
|
|
266
|
+
production: {
|
|
267
|
+
ci: true,
|
|
268
|
+
codeCoverage: true
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
targets["size-limit"] = {
|
|
274
|
+
dependsOn: [
|
|
275
|
+
"build",
|
|
276
|
+
"^size-limit"
|
|
277
|
+
],
|
|
278
|
+
options: {}
|
|
279
|
+
};
|
|
280
|
+
const isPrivate = _nullishCoalesce(packageJson.private, () => ( false));
|
|
281
|
+
if (!isPrivate) {
|
|
282
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Registry.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Registry.NPM, {
|
|
283
|
+
overwrite: true
|
|
284
|
+
});
|
|
285
|
+
targets["nx-release-publish"] = {
|
|
286
|
+
dependsOn: [
|
|
287
|
+
"build",
|
|
288
|
+
"size-limit",
|
|
289
|
+
"^nx-release-publish"
|
|
290
|
+
],
|
|
291
|
+
executor: "@storm-software/workspace-tools:npm-publish",
|
|
292
|
+
options: {}
|
|
293
|
+
};
|
|
294
|
+
if (project.projectType === "application" || _chunk7YRW5HNXjs.isEqualProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.ProjectType.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.ProjectType.APPLICATION) || _chunk7YRW5HNXjs.isEqualProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.DistStyle.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.DistStyle.CLEAN)) {
|
|
295
|
+
targets["clean-package"] = {
|
|
296
|
+
cache: true,
|
|
297
|
+
dependsOn: [
|
|
298
|
+
"build"
|
|
299
|
+
],
|
|
300
|
+
inputs: [
|
|
301
|
+
"linting",
|
|
302
|
+
"testing",
|
|
303
|
+
"documentation",
|
|
304
|
+
"default",
|
|
305
|
+
"^production"
|
|
306
|
+
],
|
|
307
|
+
outputs: [
|
|
308
|
+
"{workspaceRoot}/dist/{projectRoot}"
|
|
309
|
+
],
|
|
310
|
+
executor: "@storm-software/workspace-tools:clean-package",
|
|
311
|
+
options: {
|
|
312
|
+
cleanReadMe: true,
|
|
313
|
+
cleanComments: true
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
_optionalChain([targets, 'access', _5 => _5["nx-release-publish"], 'access', _6 => _6.dependsOn, 'optionalAccess', _7 => _7.push, 'call', _8 => _8("clean-package")]);
|
|
317
|
+
_optionalChain([targets, 'access', _9 => _9["size-limit"], 'access', _10 => _10.dependsOn, 'optionalAccess', _11 => _11.push, 'call', _12 => _12("clean-package")]);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TYPESCRIPT, {
|
|
321
|
+
overwrite: true
|
|
322
|
+
});
|
|
323
|
+
const platform = _chunkUF6KFXG5js.getProjectPlatform.call(void 0, project);
|
|
324
|
+
switch (platform) {
|
|
325
|
+
case "worker":
|
|
326
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.WORKER, {
|
|
327
|
+
overwrite: true
|
|
328
|
+
});
|
|
329
|
+
break;
|
|
330
|
+
case "node":
|
|
331
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NODE, {
|
|
332
|
+
overwrite: true
|
|
333
|
+
});
|
|
334
|
+
break;
|
|
335
|
+
case "browser":
|
|
336
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.BROWSER, {
|
|
337
|
+
overwrite: true
|
|
338
|
+
});
|
|
339
|
+
break;
|
|
340
|
+
default:
|
|
341
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NEUTRAL, {
|
|
342
|
+
overwrite: true
|
|
343
|
+
});
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
_chunk7YRW5HNXjs.setDefaultProjectTags.call(void 0, project, name);
|
|
347
|
+
const result = _optionalChain([project, 'optionalAccess', _13 => _13.name]) ? {
|
|
348
|
+
projects: {
|
|
349
|
+
[project.name]: {
|
|
350
|
+
...project,
|
|
351
|
+
root: relativeRoot,
|
|
352
|
+
targets,
|
|
353
|
+
release: {
|
|
354
|
+
..._optionalChain([project, 'optionalAccess', _14 => _14.release]),
|
|
355
|
+
version: {
|
|
356
|
+
..._optionalChain([project, 'optionalAccess', _15 => _15.release, 'optionalAccess', _16 => _16.version]),
|
|
357
|
+
generator: "@storm-software/workspace-tools:release-version"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
} : {};
|
|
363
|
+
console.log(`Writing Results for ${_nullishCoalesce(_optionalChain([project, 'optionalAccess', _17 => _17.name]), () => ( "missing name"))}`);
|
|
364
|
+
console.log(result);
|
|
365
|
+
return result;
|
|
366
|
+
} catch (e) {
|
|
367
|
+
console.error(e);
|
|
368
|
+
return {};
|
|
369
|
+
}
|
|
370
|
+
}, configFiles, options, context);
|
|
371
|
+
}
|
|
372
|
+
];
|
|
373
|
+
function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJson) {
|
|
374
|
+
const { nx, name: name2 } = packageJson;
|
|
375
|
+
const root = _path.dirname.call(void 0, projectJsonPath);
|
|
376
|
+
return {
|
|
377
|
+
...nx,
|
|
378
|
+
name: name2,
|
|
379
|
+
root,
|
|
380
|
+
targets: {}
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
_chunk3GQAWCBQjs.__name.call(void 0, createProjectFromPackageJsonNextToProjectJson, "createProjectFromPackageJsonNextToProjectJson");
|
|
384
|
+
function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
385
|
+
try {
|
|
386
|
+
const root = _path.dirname.call(void 0, projectJsonPath);
|
|
387
|
+
const packageJsonPath = _path.join.call(void 0, workspaceRoot, root, "package.json");
|
|
388
|
+
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
389
|
+
return null;
|
|
390
|
+
}
|
|
391
|
+
return _fileutils.readJsonFile.call(void 0, packageJsonPath);
|
|
392
|
+
} catch (e) {
|
|
393
|
+
console.log(e);
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
_chunk3GQAWCBQjs.__name.call(void 0, createPackageJson, "createPackageJson");
|
|
398
|
+
async function createTsconfig(projectJsonPath, workspaceRoot) {
|
|
399
|
+
try {
|
|
400
|
+
const root = _path.dirname.call(void 0, projectJsonPath);
|
|
401
|
+
const tsconfigJsonPath = _path.join.call(void 0, workspaceRoot, root, "tsconfig.json");
|
|
402
|
+
if (!_fs.existsSync.call(void 0, tsconfigJsonPath)) {
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
405
|
+
return _pkgtypes.readTSConfig.call(void 0, tsconfigJsonPath);
|
|
406
|
+
} catch (e) {
|
|
407
|
+
console.log(e);
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
_chunk3GQAWCBQjs.__name.call(void 0, createTsconfig, "createTsconfig");
|
|
412
|
+
function checkEslintConfigAtPath(directory) {
|
|
413
|
+
const hasEslintConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (fileName) => {
|
|
414
|
+
return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
|
|
415
|
+
}, "hasEslintConfigFile");
|
|
416
|
+
if (hasEslintConfigFile(".eslintrc.js")) {
|
|
417
|
+
return ".eslintrc.js";
|
|
418
|
+
} else if (hasEslintConfigFile(".eslintrc.cjs")) {
|
|
419
|
+
return ".eslintrc.cjs";
|
|
420
|
+
} else if (hasEslintConfigFile(".eslintrc.yaml")) {
|
|
421
|
+
return ".eslintrc.yaml";
|
|
422
|
+
} else if (hasEslintConfigFile(".eslintrc.yml")) {
|
|
423
|
+
return ".eslintrc.yml";
|
|
424
|
+
} else if (hasEslintConfigFile(".eslintrc.json")) {
|
|
425
|
+
return ".eslintrc.json";
|
|
426
|
+
} else if (hasEslintConfigFile(".eslintrc")) {
|
|
427
|
+
return ".eslintrc";
|
|
428
|
+
} else if (hasEslintConfigFile("eslint.config.js")) {
|
|
429
|
+
return "eslint.config.js";
|
|
430
|
+
} else if (hasEslintConfigFile("eslint.config.cjs")) {
|
|
431
|
+
return "eslint.config.cjs";
|
|
432
|
+
} else if (hasEslintConfigFile("eslint.config.mjs")) {
|
|
433
|
+
return "eslint.config.mjs";
|
|
434
|
+
} else if (hasEslintConfigFile("eslint.config.ts")) {
|
|
435
|
+
return "eslint.config.ts";
|
|
436
|
+
} else if (hasEslintConfigFile("eslint.config.cts")) {
|
|
437
|
+
return "eslint.config.cts";
|
|
438
|
+
} else if (hasEslintConfigFile("eslint.config.mts")) {
|
|
439
|
+
return "eslint.config.mts";
|
|
440
|
+
}
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
_chunk3GQAWCBQjs.__name.call(void 0, checkEslintConfigAtPath, "checkEslintConfigAtPath");
|
|
444
|
+
function checkJestConfigAtPath(directory) {
|
|
445
|
+
const hasJestConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (fileName) => {
|
|
446
|
+
return _fs.existsSync.call(void 0, _path.join.call(void 0, directory, fileName));
|
|
447
|
+
}, "hasJestConfigFile");
|
|
448
|
+
if (hasJestConfigFile("eslint.config.js")) {
|
|
449
|
+
return "jest.config.js";
|
|
450
|
+
} else if (hasJestConfigFile("eslint.config.cjs")) {
|
|
451
|
+
return "jest.config.cjs";
|
|
452
|
+
} else if (hasJestConfigFile("eslint.config.mjs")) {
|
|
453
|
+
return "jest.config.mjs";
|
|
454
|
+
} else if (hasJestConfigFile("eslint.config.ts")) {
|
|
455
|
+
return "jest.config.ts";
|
|
456
|
+
} else if (hasJestConfigFile("jest.config.cts")) {
|
|
457
|
+
return "jest.config.cts";
|
|
458
|
+
} else if (hasJestConfigFile("jest.config.mts")) {
|
|
459
|
+
return "jest.config.mts";
|
|
460
|
+
}
|
|
461
|
+
return null;
|
|
462
|
+
}
|
|
463
|
+
_chunk3GQAWCBQjs.__name.call(void 0, checkJestConfigAtPath, "checkJestConfigAtPath");
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
exports.name = name; exports.createNodesV2 = createNodesV2;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TypeScriptPluginOptions,
|
|
1
|
+
export { TypeScriptPluginOptions, createNodesV2, name } from './project-config.mjs';
|
|
2
2
|
import '@nx/devkit';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TypeScriptPluginOptions,
|
|
1
|
+
export { TypeScriptPluginOptions, createNodesV2, name } from './project-config.js';
|
|
2
2
|
import '@nx/devkit';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOQTJDGUHjs = require('../../../chunk-OQTJDGUH.js');
|
|
5
5
|
require('../../../chunk-UF6KFXG5.js');
|
|
6
6
|
require('../../../chunk-7YRW5HNX.js');
|
|
7
7
|
require('../../../chunk-3GQAWCBQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.
|
|
11
|
+
exports.createNodesV2 = _chunkOQTJDGUHjs.createNodesV2; exports.name = _chunkOQTJDGUHjs.name;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
createNodesV2,
|
|
3
3
|
name
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-6WOWZO7V.mjs";
|
|
5
5
|
import "../../../chunk-XBRJIYCS.mjs";
|
|
6
6
|
import "../../../chunk-HUVBVDJ7.mjs";
|
|
7
7
|
import "../../../chunk-2BPV2XV2.mjs";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
createNodesV2,
|
|
10
10
|
name
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodesV2 } from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
declare const name = "storm-software/typescript";
|
|
4
4
|
/**
|
|
@@ -32,6 +32,6 @@ interface TypeScriptPluginOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
lintInternalTools?: boolean;
|
|
34
34
|
}
|
|
35
|
-
declare const
|
|
35
|
+
declare const createNodesV2: CreateNodesV2<TypeScriptPluginOptions>;
|
|
36
36
|
|
|
37
|
-
export { type TypeScriptPluginOptions,
|
|
37
|
+
export { type TypeScriptPluginOptions, createNodesV2, name };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodesV2 } from '@nx/devkit';
|
|
2
2
|
|
|
3
3
|
declare const name = "storm-software/typescript";
|
|
4
4
|
/**
|
|
@@ -32,6 +32,6 @@ interface TypeScriptPluginOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
lintInternalTools?: boolean;
|
|
34
34
|
}
|
|
35
|
-
declare const
|
|
35
|
+
declare const createNodesV2: CreateNodesV2<TypeScriptPluginOptions>;
|
|
36
36
|
|
|
37
|
-
export { type TypeScriptPluginOptions,
|
|
37
|
+
export { type TypeScriptPluginOptions, createNodesV2, name };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOQTJDGUHjs = require('../../../chunk-OQTJDGUH.js');
|
|
5
5
|
require('../../../chunk-UF6KFXG5.js');
|
|
6
6
|
require('../../../chunk-7YRW5HNX.js');
|
|
7
7
|
require('../../../chunk-3GQAWCBQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.
|
|
11
|
+
exports.createNodesV2 = _chunkOQTJDGUHjs.createNodesV2; exports.name = _chunkOQTJDGUHjs.name;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
createNodesV2,
|
|
3
3
|
name
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-6WOWZO7V.mjs";
|
|
5
5
|
import "../../../chunk-XBRJIYCS.mjs";
|
|
6
6
|
import "../../../chunk-HUVBVDJ7.mjs";
|
|
7
7
|
import "../../../chunk-2BPV2XV2.mjs";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
createNodesV2,
|
|
10
10
|
name
|
|
11
11
|
};
|
package/package.json
CHANGED