@alexaegis/autotool-plugin-workspace 0.15.1 → 0.15.3
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/dist/index.cjs +70 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -31
- package/dist/index.js.map +1 -1
- package/dist/package.json.d.ts +99 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/package.json +16 -13
- package/static/pnpm-workspace.yaml +13 -4
package/dist/index.cjs
CHANGED
|
@@ -2,11 +2,12 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
+
let node_child_process = require("node:child_process");
|
|
5
6
|
let node_path = require("node:path");
|
|
6
7
|
var package_default$1 = {
|
|
7
8
|
name: "@alexaegis/workspace",
|
|
8
9
|
description: "base repo for common stuff in my other js projects",
|
|
9
|
-
version: "0.15.
|
|
10
|
+
version: "0.15.3",
|
|
10
11
|
license: "mit",
|
|
11
12
|
"private": true,
|
|
12
13
|
keywords: [
|
|
@@ -26,7 +27,7 @@ var package_default$1 = {
|
|
|
26
27
|
},
|
|
27
28
|
homepage: "https://github.com/AlexAegis/js-tooling",
|
|
28
29
|
repository: {
|
|
29
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
30
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
30
31
|
"type": "git"
|
|
31
32
|
},
|
|
32
33
|
bugs: {
|
|
@@ -39,11 +40,9 @@ var package_default$1 = {
|
|
|
39
40
|
"node": ">=22.6.0",
|
|
40
41
|
"pnpm": ">=9"
|
|
41
42
|
},
|
|
42
|
-
packageManager: "pnpm@
|
|
43
|
+
packageManager: "pnpm@11.9.0",
|
|
43
44
|
workspaces: [
|
|
44
45
|
"apps/*",
|
|
45
|
-
"examples/*",
|
|
46
|
-
"fixtures/*",
|
|
47
46
|
"libs/*",
|
|
48
47
|
"packages/*"
|
|
49
48
|
],
|
|
@@ -116,38 +115,38 @@ var package_default$1 = {
|
|
|
116
115
|
"@commitlint/config-conventional": "^20.5.3",
|
|
117
116
|
"@lcov-viewer/cli": "^1.3.0",
|
|
118
117
|
"@types/eslint": "^9.6.1",
|
|
119
|
-
"@types/node": "^
|
|
118
|
+
"@types/node": "^26.0.0",
|
|
120
119
|
"@types/yargs": "^17.0.35",
|
|
121
|
-
"@vitest/coverage-v8": "^4.1.
|
|
120
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
122
121
|
"autotool": "^0.6.1",
|
|
123
|
-
"commit-and-tag-version": "^12.7.
|
|
122
|
+
"commit-and-tag-version": "^12.7.3",
|
|
124
123
|
"commitlint": "^20.5.3",
|
|
125
124
|
"depcheck": "^1.4.7",
|
|
126
|
-
"eslint": "^10.
|
|
125
|
+
"eslint": "^10.5.0",
|
|
127
126
|
"husky": "^9.1.7",
|
|
128
|
-
"lint-staged": "^
|
|
129
|
-
"npm-check-updates": "^22.
|
|
130
|
-
"prettier": "^3.8.
|
|
131
|
-
"prettier-plugin-svelte": "^
|
|
127
|
+
"lint-staged": "^17.0.8",
|
|
128
|
+
"npm-check-updates": "^22.2.7",
|
|
129
|
+
"prettier": "^3.8.4",
|
|
130
|
+
"prettier-plugin-svelte": "^4.1.1",
|
|
132
131
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
133
|
-
"publint": "^0.3.
|
|
132
|
+
"publint": "^0.3.21",
|
|
134
133
|
"remark": "^15.0.1",
|
|
135
134
|
"remark-cli": "^12.0.1",
|
|
136
|
-
"stylelint": "^17.
|
|
137
|
-
"svelte-check": "^4.
|
|
135
|
+
"stylelint": "^17.13.0",
|
|
136
|
+
"svelte-check": "^4.7.0",
|
|
138
137
|
"ts-node": "^10.9.2",
|
|
139
|
-
"turbo": "^2.9.
|
|
140
|
-
"turbo-ignore": "^2.9.
|
|
138
|
+
"turbo": "^2.9.18",
|
|
139
|
+
"turbo-ignore": "^2.9.18",
|
|
141
140
|
"typedoc": "^0.28.19",
|
|
142
141
|
"typescript": "^6.0.3",
|
|
143
142
|
"vitepress": "1.6.4",
|
|
144
|
-
"vitest": "^4.1.
|
|
143
|
+
"vitest": "^4.1.9"
|
|
145
144
|
}
|
|
146
145
|
};
|
|
147
146
|
var package_default = {
|
|
148
147
|
name: "@alexaegis/autotool-plugin-workspace",
|
|
149
148
|
description: "This package contains generic workspace tools and scripts",
|
|
150
|
-
version: "0.15.
|
|
149
|
+
version: "0.15.3",
|
|
151
150
|
license: "MIT",
|
|
152
151
|
"private": false,
|
|
153
152
|
archetype: {
|
|
@@ -162,7 +161,7 @@ var package_default = {
|
|
|
162
161
|
"workspace"
|
|
163
162
|
],
|
|
164
163
|
repository: {
|
|
165
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
164
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
166
165
|
"type": "git"
|
|
167
166
|
},
|
|
168
167
|
type: "module",
|
|
@@ -182,6 +181,7 @@ var package_default = {
|
|
|
182
181
|
}
|
|
183
182
|
},
|
|
184
183
|
files: ["dist", "static"],
|
|
184
|
+
engines: { "node": ">=22.6.0" },
|
|
185
185
|
scripts: {
|
|
186
186
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
187
187
|
"lint:depcheck_": "depcheck",
|
|
@@ -226,17 +226,53 @@ var package_default = {
|
|
|
226
226
|
"@alexaegis/ts": "workspace:^",
|
|
227
227
|
"@alexaegis/vite": "workspace:^",
|
|
228
228
|
"@alexaegis/vitest": "workspace:^",
|
|
229
|
-
"@types/node": "^
|
|
230
|
-
"publint": "^0.3.
|
|
229
|
+
"@types/node": "^26.0.0",
|
|
230
|
+
"publint": "^0.3.21",
|
|
231
231
|
"typescript": "^6.0.3",
|
|
232
|
-
"vite": "^8.0
|
|
233
|
-
"vite-plugin-dts": "^5.0.
|
|
234
|
-
"vitest": "^4.1.
|
|
232
|
+
"vite": "^8.1.0",
|
|
233
|
+
"vite-plugin-dts": "^5.0.2",
|
|
234
|
+
"vitest": "^4.1.9"
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/index.ts
|
|
239
|
-
|
|
239
|
+
/**
|
|
240
|
+
* Resolves the repository url from the git `origin` remote of the workspace it's
|
|
241
|
+
* running in, normalized to the `git+https://host/owner/repo.git` form npm
|
|
242
|
+
* expects. Returns undefined when there's no git repository or no `origin`
|
|
243
|
+
* remote, so the `repository` field can be left untouched instead of being
|
|
244
|
+
* polluted with the wrong url.
|
|
245
|
+
*/
|
|
246
|
+
var resolveRepositoryUrlFromGitOrigin = (cwd) => {
|
|
247
|
+
let raw;
|
|
248
|
+
try {
|
|
249
|
+
raw = (0, node_child_process.execFileSync)("git", [
|
|
250
|
+
"remote",
|
|
251
|
+
"get-url",
|
|
252
|
+
"origin"
|
|
253
|
+
], {
|
|
254
|
+
cwd,
|
|
255
|
+
encoding: "utf8",
|
|
256
|
+
stdio: [
|
|
257
|
+
"ignore",
|
|
258
|
+
"pipe",
|
|
259
|
+
"ignore"
|
|
260
|
+
]
|
|
261
|
+
}).trim();
|
|
262
|
+
} catch {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (!raw) return;
|
|
266
|
+
const sshMatch = /^git@([^:]+):(.+)$/.exec(raw);
|
|
267
|
+
let httpsUrl = sshMatch ? `https://${sshMatch[1]}/${sshMatch[2]}` : raw;
|
|
268
|
+
httpsUrl = httpsUrl.replace(/^ssh:\/\/git@/, "https://");
|
|
269
|
+
if (!httpsUrl.endsWith(".git")) httpsUrl = `${httpsUrl}.git`;
|
|
270
|
+
return httpsUrl.startsWith("git+") ? httpsUrl : `git+${httpsUrl}`;
|
|
271
|
+
};
|
|
272
|
+
var plugin = (options) => {
|
|
273
|
+
const rootRepository = options.rootWorkspacePackage.packageJson.repository;
|
|
274
|
+
const rootRepositoryUrlFromPackageJson = typeof rootRepository === "string" ? rootRepository : rootRepository?.url;
|
|
275
|
+
const rootRepositoryUrl = resolveRepositoryUrlFromGitOrigin(options.rootWorkspacePackage.packagePath) ?? rootRepositoryUrlFromPackageJson;
|
|
240
276
|
return {
|
|
241
277
|
name: package_default.name,
|
|
242
278
|
elements: [
|
|
@@ -270,8 +306,6 @@ var plugin = (_options) => {
|
|
|
270
306
|
packageManager: package_default$1.packageManager,
|
|
271
307
|
workspaces: [
|
|
272
308
|
"apps/*",
|
|
273
|
-
"examples/*",
|
|
274
|
-
"fixtures/*",
|
|
275
309
|
"libs/*",
|
|
276
310
|
"packages/*"
|
|
277
311
|
]
|
|
@@ -315,13 +349,18 @@ var plugin = (_options) => {
|
|
|
315
349
|
executor: "packageJson",
|
|
316
350
|
data: { type: "module" }
|
|
317
351
|
},
|
|
318
|
-
{
|
|
352
|
+
...rootRepositoryUrl ? [{
|
|
319
353
|
description: "repository metadata for trusted publishing",
|
|
320
354
|
executor: "packageJson",
|
|
321
355
|
data: { repository: {
|
|
322
356
|
type: "git",
|
|
323
|
-
url:
|
|
357
|
+
url: rootRepositoryUrl
|
|
324
358
|
} }
|
|
359
|
+
}] : [],
|
|
360
|
+
{
|
|
361
|
+
description: "engines.node minimum on every package",
|
|
362
|
+
executor: "packageJson",
|
|
363
|
+
data: { engines: { node: ">=22.6.0" } }
|
|
325
364
|
}
|
|
326
365
|
]
|
|
327
366
|
};
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../package.json","../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/workspace\",\n\t\"description\": \"base repo for common stuff in my other js projects\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"mit\",\n\t\"private\": true,\n\t\"keywords\": [\n\t\t\"eslint\",\n\t\t\"javascript\",\n\t\t\"js\",\n\t\t\"managed-by-autotool\",\n\t\t\"ts\",\n\t\t\"tsconfig\",\n\t\t\"turbo\",\n\t\t\"typescript\"\n\t],\n\t\"author\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"name\": \"Alex Aegis\",\n\t\t\"url\": \"https://github.com/AlexAegis\"\n\t},\n\t\"homepage\": \"https://github.com/AlexAegis/js-tooling\",\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"bugs\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"url\": \"https://github.com/AlexAegis/js-tooling/issues\"\n\t},\n\t\"type\": \"module\",\n\t\"config\": {\n\t\t\"engine-strict\": true\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\",\n\t\t\"pnpm\": \">=9\"\n\t},\n\t\"packageManager\": \"pnpm@10.33.2\",\n\t\"workspaces\": [\n\t\t\"apps/*\",\n\t\t\"examples/*\",\n\t\t\"fixtures/*\",\n\t\t\"libs/*\",\n\t\t\"packages/*\"\n\t],\n\t\"scripts\": {\n\t\t\"lint\": \"turbo run lint_ --concurrency 16\",\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore --ignore-pattern packages --ignore-pattern libs --ignore-pattern apps .\",\n\t\t\"lint:style\": \"turbo run lint:style_ --concurrency 16\",\n\t\t\"lint:style:css\": \"turbo run lint:style:css_ --concurrency 16\",\n\t\t\"lint:style:html\": \"turbo run lint:style:html_ --concurrency 16\",\n\t\t\"lint:style:scss\": \"turbo run lint:style:scss_ --concurrency 16\",\n\t\t\"lint:svelte\": \"turbo run lint:svelte_ --concurrency 16\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16\",\n\t\t\"build\": \"turbo run build-lib_ build-app_ --concurrency 16\",\n\t\t\"build-app\": \"turbo run build-app_ --concurrency 16\",\n\t\t\"build-lib\": \"turbo run build-lib_ --concurrency 16\",\n\t\t\"dev\": \"pnpm run --dir packages/turbowatch build && pnpm run --dir apps/svelte-example-app dev\",\n\t\t\"docs\": \"vitepress dev ./docs/\",\n\t\t\"docs:build\": \"vitepress build ./docs/\",\n\t\t\"docs:preview\": \"vitepress preview ./docs/\",\n\t\t\"format\": \"turbo run format_ --concurrency 16\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --write .\",\n\t\t\"ncu\": \"ncu --configFilePath ./.config/ && pnpm up\",\n\t\t\"nuke\": \"nuke\",\n\t\t\"postinstall\": \"husky install && turbo run build-lib_ --concurrency 16 --filter @alexaegis/vite --filter @alexaegis/eslint-config* --filter @alexaegis/prettier-config* --filter @alexaegis/autotool-plugin-* --filter @alexaegis/stylelint-* && autotool\",\n\t\t\"release\": \"commit-and-tag-version --sign --commit-all\",\n\t\t\"release:major\": \"commit-and-tag-version --sign --commit-all --release-as major\",\n\t\t\"release:minor\": \"commit-and-tag-version --sign --commit-all --release-as minor\",\n\t\t\"release:patch\": \"commit-and-tag-version --sign --commit-all --release-as patch\",\n\t\t\"start\": \"pnpm run --dir apps/svelte-example-app start\",\n\t\t\"typedoc\": \"turbo run typedoc_ --concurrency 16\",\n\t\t\"typedoc_\": \"typedoc\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/autotool-plugin-commitlint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-depcheck\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-editorconfig\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-eslint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-git\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-github\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-husky\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ncu\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-prettier\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-publint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-remark\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-standard-version\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-stylelint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-svelte\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ts\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-turbo\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-typedoc\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vite\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitepress\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vscode\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-workspace\": \"workspace:^\",\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/eslint-config-core\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/stylelint-config\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@commitlint/config-conventional\": \"^20.5.3\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/eslint\": \"^9.6.1\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"@types/yargs\": \"^17.0.35\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.5\",\n\t\t\"autotool\": \"^0.6.1\",\n\t\t\"commit-and-tag-version\": \"^12.7.1\",\n\t\t\"commitlint\": \"^20.5.3\",\n\t\t\"depcheck\": \"^1.4.7\",\n\t\t\"eslint\": \"^10.3.0\",\n\t\t\"husky\": \"^9.1.7\",\n\t\t\"lint-staged\": \"^16.4.0\",\n\t\t\"npm-check-updates\": \"^22.1.0\",\n\t\t\"prettier\": \"^3.8.3\",\n\t\t\"prettier-plugin-svelte\": \"^3.5.1\",\n\t\t\"prettier-plugin-tailwindcss\": \"^0.8.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"remark\": \"^15.0.1\",\n\t\t\"remark-cli\": \"^12.0.1\",\n\t\t\"stylelint\": \"^17.10.0\",\n\t\t\"svelte-check\": \"^4.4.7\",\n\t\t\"ts-node\": \"^10.9.2\",\n\t\t\"turbo\": \"^2.9.8\",\n\t\t\"turbo-ignore\": \"^2.9.8\",\n\t\t\"typedoc\": \"^0.28.19\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vitepress\": \"1.6.4\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","{\n\t\"name\": \"@alexaegis/autotool-plugin-workspace\",\n\t\"description\": \"This package contains generic workspace tools and scripts\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"workspace\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.10\",\n\t\t\"vite-plugin-dts\": \"^5.0.0\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","import type {\n\tAutotoolPlugin,\n\tAutotoolPluginObject,\n\tNormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport rootPackageJson from '../../../package.json' with { type: 'json' };\nimport packageJson from '../package.json' with { type: 'json' };\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'pnpm workspace preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'pnpm-workspace.yaml'),\n\t\t\t\ttargetFile: 'pnpm-workspace.yaml',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package.json sort preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'package.sort.json'),\n\t\t\t\ttargetFile: join('.config', 'package.sort.json'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace engine preferences for node',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\t'engine-strict': true,\n\t\t\t\t\t},\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t\tnpm: undefined,\n\t\t\t\t\t\tpnpm: '>=9',\n\t\t\t\t\t},\n\t\t\t\t\tpackageManager: rootPackageJson.packageManager,\n\t\t\t\t\tworkspaces: ['apps/*', 'examples/*', 'fixtures/*', 'libs/*', 'packages/*'], // Some tools like typedoc will only read this field even though the same information is defined in pnpm-workspace.yaml\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and all autotool plugins as devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tnuke: 'nuke',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/nuke': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-commitlint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-depcheck': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-editorconfig': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-eslint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-git': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-github': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-husky': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ncu': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-prettier': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-publint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-remark': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-standard-version': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-stylelint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-svelte': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ts': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-turbo': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-typedoc': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vite': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitepress': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitest': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vscode': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-workspace': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'use esm',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\ttype: 'module',\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'repository metadata for trusted publishing',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\trepository: {\n\t\t\t\t\t\ttype: 'git',\n\t\t\t\t\t\turl: rootPackageJson.repository.url,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AESA,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,yBAAyB,gBAAY;IACrC,aAAA,GAAA,UAAA,MAAiB,UAAU,sBAAsB;IACjD,YAAY;IACZ;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,yBAAyB,gBAAY;IACrC,aAAA,GAAA,UAAA,MAAiB,UAAU,oBAAoB;IAC/C,aAAA,GAAA,UAAA,MAAiB,WAAW,oBAAoB;IAChD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,QAAQ,EACP,iBAAiB,MACjB;KACD,SAAS;MACR,MAAM;MACN,KAAK,KAAA;MACL,MAAM;MACN;KACD,gBAAgB,kBAAgB;KAChC,YAAY;MAAC;MAAU;MAAc;MAAc;MAAU;MAAa;KAC1E;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,QACN;KACD,iBAAiB;MAChB,mBAAmB,IAAI,gBAAY;MACnC,yCAAyC,IAAI,gBAAY;MACzD,uCAAuC,IAAI,gBAAY;MACvD,2CAA2C,IAAI,gBAAY;MAC3D,qCAAqC,IAAI,gBAAY;MACrD,kCAAkC,IAAI,gBAAY;MAClD,qCAAqC,IAAI,gBAAY;MACrD,oCAAoC,IAAI,gBAAY;MACpD,kCAAkC,IAAI,gBAAY;MAClD,uCAAuC,IAAI,gBAAY;MACvD,sCAAsC,IAAI,gBAAY;MACtD,qCAAqC,IAAI,gBAAY;MACrD,+CAA+C,IAAI,gBAAY;MAC/D,wCAAwC,IAAI,gBAAY;MACxD,qCAAqC,IAAI,gBAAY;MACrD,iCAAiC,IAAI,gBAAY;MACjD,oCAAoC,IAAI,gBAAY;MACpD,sCAAsC,IAAI,gBAAY;MACtD,mCAAmC,IAAI,gBAAY;MACnD,wCAAwC,IAAI,gBAAY;MACxD,qCAAqC,IAAI,gBAAY;MACrD,qCAAqC,IAAI,gBAAY;MACrD,wCAAwC,IAAI,gBAAY;MACxD;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,MAAM,EACL,MAAM,UACN;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,MAAM,EACL,YAAY;KACX,MAAM;KACN,KAAK,kBAAgB,WAAW;KAChC,EACD;IACD;GACD;EACD"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../package.json","../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/workspace\",\n\t\"description\": \"base repo for common stuff in my other js projects\",\n\t\"version\": \"0.15.3\",\n\t\"license\": \"mit\",\n\t\"private\": true,\n\t\"keywords\": [\n\t\t\"eslint\",\n\t\t\"javascript\",\n\t\t\"js\",\n\t\t\"managed-by-autotool\",\n\t\t\"ts\",\n\t\t\"tsconfig\",\n\t\t\"turbo\",\n\t\t\"typescript\"\n\t],\n\t\"author\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"name\": \"Alex Aegis\",\n\t\t\"url\": \"https://github.com/AlexAegis\"\n\t},\n\t\"homepage\": \"https://github.com/AlexAegis/js-tooling\",\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"bugs\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"url\": \"https://github.com/AlexAegis/js-tooling/issues\"\n\t},\n\t\"type\": \"module\",\n\t\"config\": {\n\t\t\"engine-strict\": true\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\",\n\t\t\"pnpm\": \">=9\"\n\t},\n\t\"packageManager\": \"pnpm@11.9.0\",\n\t\"workspaces\": [\n\t\t\"apps/*\",\n\t\t\"libs/*\",\n\t\t\"packages/*\"\n\t],\n\t\"scripts\": {\n\t\t\"lint\": \"turbo run lint_ --concurrency 16\",\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore --ignore-pattern packages --ignore-pattern libs --ignore-pattern apps .\",\n\t\t\"lint:style\": \"turbo run lint:style_ --concurrency 16\",\n\t\t\"lint:style:css\": \"turbo run lint:style:css_ --concurrency 16\",\n\t\t\"lint:style:html\": \"turbo run lint:style:html_ --concurrency 16\",\n\t\t\"lint:style:scss\": \"turbo run lint:style:scss_ --concurrency 16\",\n\t\t\"lint:svelte\": \"turbo run lint:svelte_ --concurrency 16\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16\",\n\t\t\"build\": \"turbo run build-lib_ build-app_ --concurrency 16\",\n\t\t\"build-app\": \"turbo run build-app_ --concurrency 16\",\n\t\t\"build-lib\": \"turbo run build-lib_ --concurrency 16\",\n\t\t\"dev\": \"pnpm run --dir packages/turbowatch build && pnpm run --dir apps/svelte-example-app dev\",\n\t\t\"docs\": \"vitepress dev ./docs/\",\n\t\t\"docs:build\": \"vitepress build ./docs/\",\n\t\t\"docs:preview\": \"vitepress preview ./docs/\",\n\t\t\"format\": \"turbo run format_ --concurrency 16\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --write .\",\n\t\t\"ncu\": \"ncu --configFilePath ./.config/ && pnpm up\",\n\t\t\"nuke\": \"nuke\",\n\t\t\"postinstall\": \"husky install && turbo run build-lib_ --concurrency 16 --filter @alexaegis/vite --filter @alexaegis/eslint-config* --filter @alexaegis/prettier-config* --filter @alexaegis/autotool-plugin-* --filter @alexaegis/stylelint-* && autotool\",\n\t\t\"release\": \"commit-and-tag-version --sign --commit-all\",\n\t\t\"release:major\": \"commit-and-tag-version --sign --commit-all --release-as major\",\n\t\t\"release:minor\": \"commit-and-tag-version --sign --commit-all --release-as minor\",\n\t\t\"release:patch\": \"commit-and-tag-version --sign --commit-all --release-as patch\",\n\t\t\"start\": \"pnpm run --dir apps/svelte-example-app start\",\n\t\t\"typedoc\": \"turbo run typedoc_ --concurrency 16\",\n\t\t\"typedoc_\": \"typedoc\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/autotool-plugin-commitlint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-depcheck\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-editorconfig\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-eslint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-git\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-github\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-husky\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ncu\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-prettier\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-publint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-remark\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-standard-version\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-stylelint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-svelte\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ts\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-turbo\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-typedoc\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vite\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitepress\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vscode\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-workspace\": \"workspace:^\",\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/eslint-config-core\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/stylelint-config\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@commitlint/config-conventional\": \"^20.5.3\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/eslint\": \"^9.6.1\",\n\t\t\"@types/node\": \"^26.0.0\",\n\t\t\"@types/yargs\": \"^17.0.35\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.9\",\n\t\t\"autotool\": \"^0.6.1\",\n\t\t\"commit-and-tag-version\": \"^12.7.3\",\n\t\t\"commitlint\": \"^20.5.3\",\n\t\t\"depcheck\": \"^1.4.7\",\n\t\t\"eslint\": \"^10.5.0\",\n\t\t\"husky\": \"^9.1.7\",\n\t\t\"lint-staged\": \"^17.0.8\",\n\t\t\"npm-check-updates\": \"^22.2.7\",\n\t\t\"prettier\": \"^3.8.4\",\n\t\t\"prettier-plugin-svelte\": \"^4.1.1\",\n\t\t\"prettier-plugin-tailwindcss\": \"^0.8.0\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"remark\": \"^15.0.1\",\n\t\t\"remark-cli\": \"^12.0.1\",\n\t\t\"stylelint\": \"^17.13.0\",\n\t\t\"svelte-check\": \"^4.7.0\",\n\t\t\"ts-node\": \"^10.9.2\",\n\t\t\"turbo\": \"^2.9.18\",\n\t\t\"turbo-ignore\": \"^2.9.18\",\n\t\t\"typedoc\": \"^0.28.19\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vitepress\": \"1.6.4\",\n\t\t\"vitest\": \"^4.1.9\"\n\t}\n}\n","{\n\t\"name\": \"@alexaegis/autotool-plugin-workspace\",\n\t\"description\": \"This package contains generic workspace tools and scripts\",\n\t\"version\": \"0.15.3\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"workspace\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\"\n\t},\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@types/node\": \"^26.0.0\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.1.0\",\n\t\t\"vite-plugin-dts\": \"^5.0.2\",\n\t\t\"vitest\": \"^4.1.9\"\n\t}\n}\n","import type {\n\tAutotoolPlugin,\n\tAutotoolPluginObject,\n\tNormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { execFileSync } from 'node:child_process';\nimport { join } from 'node:path';\nimport rootPackageJson from '../../../package.json' with { type: 'json' };\nimport packageJson from '../package.json' with { type: 'json' };\n\n/**\n * Resolves the repository url from the git `origin` remote of the workspace it's\n * running in, normalized to the `git+https://host/owner/repo.git` form npm\n * expects. Returns undefined when there's no git repository or no `origin`\n * remote, so the `repository` field can be left untouched instead of being\n * polluted with the wrong url.\n */\nconst resolveRepositoryUrlFromGitOrigin = (cwd: string): string | undefined => {\n\tlet raw: string;\n\ttry {\n\t\traw = execFileSync('git', ['remote', 'get-url', 'origin'], {\n\t\t\tcwd,\n\t\t\tencoding: 'utf8',\n\t\t\tstdio: ['ignore', 'pipe', 'ignore'],\n\t\t}).trim();\n\t} catch {\n\t\treturn undefined;\n\t}\n\n\tif (!raw) {\n\t\treturn undefined;\n\t}\n\n\t// git@host:owner/repo(.git) -> https://host/owner/repo(.git)\n\tconst sshMatch = /^git@([^:]+):(.+)$/.exec(raw);\n\tlet httpsUrl = sshMatch ? `https://${sshMatch[1]}/${sshMatch[2]}` : raw;\n\n\t// ssh://git@host/owner/repo(.git) -> https://host/owner/repo(.git)\n\thttpsUrl = httpsUrl.replace(/^ssh:\\/\\/git@/, 'https://');\n\n\tif (!httpsUrl.endsWith('.git')) {\n\t\thttpsUrl = `${httpsUrl}.git`;\n\t}\n\n\treturn httpsUrl.startsWith('git+') ? httpsUrl : `git+${httpsUrl}`;\n};\n\nexport const plugin: AutotoolPlugin = (\n\toptions: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\tconst rootRepository = options.rootWorkspacePackage.packageJson.repository as\n\t\t| { type?: string; url?: string }\n\t\t| string\n\t\t| undefined;\n\tconst rootRepositoryUrlFromPackageJson =\n\t\ttypeof rootRepository === 'string' ? rootRepository : rootRepository?.url;\n\tconst rootRepositoryUrl =\n\t\tresolveRepositoryUrlFromGitOrigin(options.rootWorkspacePackage.packagePath) ??\n\t\trootRepositoryUrlFromPackageJson;\n\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'pnpm workspace preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'pnpm-workspace.yaml'),\n\t\t\t\ttargetFile: 'pnpm-workspace.yaml',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package.json sort preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'package.sort.json'),\n\t\t\t\ttargetFile: join('.config', 'package.sort.json'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace engine preferences for node',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\t'engine-strict': true,\n\t\t\t\t\t},\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t\tnpm: undefined,\n\t\t\t\t\t\tpnpm: '>=9',\n\t\t\t\t\t},\n\t\t\t\t\tpackageManager: rootPackageJson.packageManager,\n\t\t\t\t\tworkspaces: ['apps/*', 'libs/*', 'packages/*'], // Some tools like typedoc will only read this field even though the same information is defined in pnpm-workspace.yaml\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and all autotool plugins as devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tnuke: 'nuke',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/nuke': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-commitlint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-depcheck': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-editorconfig': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-eslint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-git': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-github': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-husky': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ncu': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-prettier': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-publint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-remark': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-standard-version': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-stylelint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-svelte': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ts': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-turbo': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-typedoc': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vite': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitepress': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitest': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vscode': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-workspace': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'use esm',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\ttype: 'module',\n\t\t\t\t},\n\t\t\t},\n\t\t\t...(rootRepositoryUrl\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: 'repository metadata for trusted publishing',\n\t\t\t\t\t\t\texecutor: 'packageJson' as const,\n\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\trepository: {\n\t\t\t\t\t\t\t\t\ttype: 'git',\n\t\t\t\t\t\t\t\t\turl: rootRepositoryUrl,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t{\n\t\t\t\tdescription: 'engines.node minimum on every package',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":"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"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EAGd,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EAGd,MAAM,iBAAiB,CAAC;AA2CzB,eAAO,MAAM,MAAM,EAAE,cAoHpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
1
2
|
import { join } from "node:path";
|
|
2
3
|
var package_default$1 = {
|
|
3
4
|
name: "@alexaegis/workspace",
|
|
4
5
|
description: "base repo for common stuff in my other js projects",
|
|
5
|
-
version: "0.15.
|
|
6
|
+
version: "0.15.3",
|
|
6
7
|
license: "mit",
|
|
7
8
|
"private": true,
|
|
8
9
|
keywords: [
|
|
@@ -22,7 +23,7 @@ var package_default$1 = {
|
|
|
22
23
|
},
|
|
23
24
|
homepage: "https://github.com/AlexAegis/js-tooling",
|
|
24
25
|
repository: {
|
|
25
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
26
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
26
27
|
"type": "git"
|
|
27
28
|
},
|
|
28
29
|
bugs: {
|
|
@@ -35,11 +36,9 @@ var package_default$1 = {
|
|
|
35
36
|
"node": ">=22.6.0",
|
|
36
37
|
"pnpm": ">=9"
|
|
37
38
|
},
|
|
38
|
-
packageManager: "pnpm@
|
|
39
|
+
packageManager: "pnpm@11.9.0",
|
|
39
40
|
workspaces: [
|
|
40
41
|
"apps/*",
|
|
41
|
-
"examples/*",
|
|
42
|
-
"fixtures/*",
|
|
43
42
|
"libs/*",
|
|
44
43
|
"packages/*"
|
|
45
44
|
],
|
|
@@ -112,38 +111,38 @@ var package_default$1 = {
|
|
|
112
111
|
"@commitlint/config-conventional": "^20.5.3",
|
|
113
112
|
"@lcov-viewer/cli": "^1.3.0",
|
|
114
113
|
"@types/eslint": "^9.6.1",
|
|
115
|
-
"@types/node": "^
|
|
114
|
+
"@types/node": "^26.0.0",
|
|
116
115
|
"@types/yargs": "^17.0.35",
|
|
117
|
-
"@vitest/coverage-v8": "^4.1.
|
|
116
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
118
117
|
"autotool": "^0.6.1",
|
|
119
|
-
"commit-and-tag-version": "^12.7.
|
|
118
|
+
"commit-and-tag-version": "^12.7.3",
|
|
120
119
|
"commitlint": "^20.5.3",
|
|
121
120
|
"depcheck": "^1.4.7",
|
|
122
|
-
"eslint": "^10.
|
|
121
|
+
"eslint": "^10.5.0",
|
|
123
122
|
"husky": "^9.1.7",
|
|
124
|
-
"lint-staged": "^
|
|
125
|
-
"npm-check-updates": "^22.
|
|
126
|
-
"prettier": "^3.8.
|
|
127
|
-
"prettier-plugin-svelte": "^
|
|
123
|
+
"lint-staged": "^17.0.8",
|
|
124
|
+
"npm-check-updates": "^22.2.7",
|
|
125
|
+
"prettier": "^3.8.4",
|
|
126
|
+
"prettier-plugin-svelte": "^4.1.1",
|
|
128
127
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
129
|
-
"publint": "^0.3.
|
|
128
|
+
"publint": "^0.3.21",
|
|
130
129
|
"remark": "^15.0.1",
|
|
131
130
|
"remark-cli": "^12.0.1",
|
|
132
|
-
"stylelint": "^17.
|
|
133
|
-
"svelte-check": "^4.
|
|
131
|
+
"stylelint": "^17.13.0",
|
|
132
|
+
"svelte-check": "^4.7.0",
|
|
134
133
|
"ts-node": "^10.9.2",
|
|
135
|
-
"turbo": "^2.9.
|
|
136
|
-
"turbo-ignore": "^2.9.
|
|
134
|
+
"turbo": "^2.9.18",
|
|
135
|
+
"turbo-ignore": "^2.9.18",
|
|
137
136
|
"typedoc": "^0.28.19",
|
|
138
137
|
"typescript": "^6.0.3",
|
|
139
138
|
"vitepress": "1.6.4",
|
|
140
|
-
"vitest": "^4.1.
|
|
139
|
+
"vitest": "^4.1.9"
|
|
141
140
|
}
|
|
142
141
|
};
|
|
143
142
|
var package_default = {
|
|
144
143
|
name: "@alexaegis/autotool-plugin-workspace",
|
|
145
144
|
description: "This package contains generic workspace tools and scripts",
|
|
146
|
-
version: "0.15.
|
|
145
|
+
version: "0.15.3",
|
|
147
146
|
license: "MIT",
|
|
148
147
|
"private": false,
|
|
149
148
|
archetype: {
|
|
@@ -158,7 +157,7 @@ var package_default = {
|
|
|
158
157
|
"workspace"
|
|
159
158
|
],
|
|
160
159
|
repository: {
|
|
161
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
160
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
162
161
|
"type": "git"
|
|
163
162
|
},
|
|
164
163
|
type: "module",
|
|
@@ -178,6 +177,7 @@ var package_default = {
|
|
|
178
177
|
}
|
|
179
178
|
},
|
|
180
179
|
files: ["dist", "static"],
|
|
180
|
+
engines: { "node": ">=22.6.0" },
|
|
181
181
|
scripts: {
|
|
182
182
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
183
183
|
"lint:depcheck_": "depcheck",
|
|
@@ -222,17 +222,53 @@ var package_default = {
|
|
|
222
222
|
"@alexaegis/ts": "workspace:^",
|
|
223
223
|
"@alexaegis/vite": "workspace:^",
|
|
224
224
|
"@alexaegis/vitest": "workspace:^",
|
|
225
|
-
"@types/node": "^
|
|
226
|
-
"publint": "^0.3.
|
|
225
|
+
"@types/node": "^26.0.0",
|
|
226
|
+
"publint": "^0.3.21",
|
|
227
227
|
"typescript": "^6.0.3",
|
|
228
|
-
"vite": "^8.0
|
|
229
|
-
"vite-plugin-dts": "^5.0.
|
|
230
|
-
"vitest": "^4.1.
|
|
228
|
+
"vite": "^8.1.0",
|
|
229
|
+
"vite-plugin-dts": "^5.0.2",
|
|
230
|
+
"vitest": "^4.1.9"
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
//#endregion
|
|
234
234
|
//#region src/index.ts
|
|
235
|
-
|
|
235
|
+
/**
|
|
236
|
+
* Resolves the repository url from the git `origin` remote of the workspace it's
|
|
237
|
+
* running in, normalized to the `git+https://host/owner/repo.git` form npm
|
|
238
|
+
* expects. Returns undefined when there's no git repository or no `origin`
|
|
239
|
+
* remote, so the `repository` field can be left untouched instead of being
|
|
240
|
+
* polluted with the wrong url.
|
|
241
|
+
*/
|
|
242
|
+
var resolveRepositoryUrlFromGitOrigin = (cwd) => {
|
|
243
|
+
let raw;
|
|
244
|
+
try {
|
|
245
|
+
raw = execFileSync("git", [
|
|
246
|
+
"remote",
|
|
247
|
+
"get-url",
|
|
248
|
+
"origin"
|
|
249
|
+
], {
|
|
250
|
+
cwd,
|
|
251
|
+
encoding: "utf8",
|
|
252
|
+
stdio: [
|
|
253
|
+
"ignore",
|
|
254
|
+
"pipe",
|
|
255
|
+
"ignore"
|
|
256
|
+
]
|
|
257
|
+
}).trim();
|
|
258
|
+
} catch {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (!raw) return;
|
|
262
|
+
const sshMatch = /^git@([^:]+):(.+)$/.exec(raw);
|
|
263
|
+
let httpsUrl = sshMatch ? `https://${sshMatch[1]}/${sshMatch[2]}` : raw;
|
|
264
|
+
httpsUrl = httpsUrl.replace(/^ssh:\/\/git@/, "https://");
|
|
265
|
+
if (!httpsUrl.endsWith(".git")) httpsUrl = `${httpsUrl}.git`;
|
|
266
|
+
return httpsUrl.startsWith("git+") ? httpsUrl : `git+${httpsUrl}`;
|
|
267
|
+
};
|
|
268
|
+
var plugin = (options) => {
|
|
269
|
+
const rootRepository = options.rootWorkspacePackage.packageJson.repository;
|
|
270
|
+
const rootRepositoryUrlFromPackageJson = typeof rootRepository === "string" ? rootRepository : rootRepository?.url;
|
|
271
|
+
const rootRepositoryUrl = resolveRepositoryUrlFromGitOrigin(options.rootWorkspacePackage.packagePath) ?? rootRepositoryUrlFromPackageJson;
|
|
236
272
|
return {
|
|
237
273
|
name: package_default.name,
|
|
238
274
|
elements: [
|
|
@@ -266,8 +302,6 @@ var plugin = (_options) => {
|
|
|
266
302
|
packageManager: package_default$1.packageManager,
|
|
267
303
|
workspaces: [
|
|
268
304
|
"apps/*",
|
|
269
|
-
"examples/*",
|
|
270
|
-
"fixtures/*",
|
|
271
305
|
"libs/*",
|
|
272
306
|
"packages/*"
|
|
273
307
|
]
|
|
@@ -311,13 +345,18 @@ var plugin = (_options) => {
|
|
|
311
345
|
executor: "packageJson",
|
|
312
346
|
data: { type: "module" }
|
|
313
347
|
},
|
|
314
|
-
{
|
|
348
|
+
...rootRepositoryUrl ? [{
|
|
315
349
|
description: "repository metadata for trusted publishing",
|
|
316
350
|
executor: "packageJson",
|
|
317
351
|
data: { repository: {
|
|
318
352
|
type: "git",
|
|
319
|
-
url:
|
|
353
|
+
url: rootRepositoryUrl
|
|
320
354
|
} }
|
|
355
|
+
}] : [],
|
|
356
|
+
{
|
|
357
|
+
description: "engines.node minimum on every package",
|
|
358
|
+
executor: "packageJson",
|
|
359
|
+
data: { engines: { node: ">=22.6.0" } }
|
|
321
360
|
}
|
|
322
361
|
]
|
|
323
362
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../package.json","../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/workspace\",\n\t\"description\": \"base repo for common stuff in my other js projects\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"mit\",\n\t\"private\": true,\n\t\"keywords\": [\n\t\t\"eslint\",\n\t\t\"javascript\",\n\t\t\"js\",\n\t\t\"managed-by-autotool\",\n\t\t\"ts\",\n\t\t\"tsconfig\",\n\t\t\"turbo\",\n\t\t\"typescript\"\n\t],\n\t\"author\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"name\": \"Alex Aegis\",\n\t\t\"url\": \"https://github.com/AlexAegis\"\n\t},\n\t\"homepage\": \"https://github.com/AlexAegis/js-tooling\",\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"bugs\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"url\": \"https://github.com/AlexAegis/js-tooling/issues\"\n\t},\n\t\"type\": \"module\",\n\t\"config\": {\n\t\t\"engine-strict\": true\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\",\n\t\t\"pnpm\": \">=9\"\n\t},\n\t\"packageManager\": \"pnpm@10.33.2\",\n\t\"workspaces\": [\n\t\t\"apps/*\",\n\t\t\"examples/*\",\n\t\t\"fixtures/*\",\n\t\t\"libs/*\",\n\t\t\"packages/*\"\n\t],\n\t\"scripts\": {\n\t\t\"lint\": \"turbo run lint_ --concurrency 16\",\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore --ignore-pattern packages --ignore-pattern libs --ignore-pattern apps .\",\n\t\t\"lint:style\": \"turbo run lint:style_ --concurrency 16\",\n\t\t\"lint:style:css\": \"turbo run lint:style:css_ --concurrency 16\",\n\t\t\"lint:style:html\": \"turbo run lint:style:html_ --concurrency 16\",\n\t\t\"lint:style:scss\": \"turbo run lint:style:scss_ --concurrency 16\",\n\t\t\"lint:svelte\": \"turbo run lint:svelte_ --concurrency 16\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16\",\n\t\t\"build\": \"turbo run build-lib_ build-app_ --concurrency 16\",\n\t\t\"build-app\": \"turbo run build-app_ --concurrency 16\",\n\t\t\"build-lib\": \"turbo run build-lib_ --concurrency 16\",\n\t\t\"dev\": \"pnpm run --dir packages/turbowatch build && pnpm run --dir apps/svelte-example-app dev\",\n\t\t\"docs\": \"vitepress dev ./docs/\",\n\t\t\"docs:build\": \"vitepress build ./docs/\",\n\t\t\"docs:preview\": \"vitepress preview ./docs/\",\n\t\t\"format\": \"turbo run format_ --concurrency 16\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --write .\",\n\t\t\"ncu\": \"ncu --configFilePath ./.config/ && pnpm up\",\n\t\t\"nuke\": \"nuke\",\n\t\t\"postinstall\": \"husky install && turbo run build-lib_ --concurrency 16 --filter @alexaegis/vite --filter @alexaegis/eslint-config* --filter @alexaegis/prettier-config* --filter @alexaegis/autotool-plugin-* --filter @alexaegis/stylelint-* && autotool\",\n\t\t\"release\": \"commit-and-tag-version --sign --commit-all\",\n\t\t\"release:major\": \"commit-and-tag-version --sign --commit-all --release-as major\",\n\t\t\"release:minor\": \"commit-and-tag-version --sign --commit-all --release-as minor\",\n\t\t\"release:patch\": \"commit-and-tag-version --sign --commit-all --release-as patch\",\n\t\t\"start\": \"pnpm run --dir apps/svelte-example-app start\",\n\t\t\"typedoc\": \"turbo run typedoc_ --concurrency 16\",\n\t\t\"typedoc_\": \"typedoc\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/autotool-plugin-commitlint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-depcheck\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-editorconfig\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-eslint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-git\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-github\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-husky\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ncu\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-prettier\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-publint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-remark\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-standard-version\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-stylelint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-svelte\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ts\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-turbo\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-typedoc\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vite\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitepress\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vscode\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-workspace\": \"workspace:^\",\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/eslint-config-core\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/stylelint-config\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@commitlint/config-conventional\": \"^20.5.3\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/eslint\": \"^9.6.1\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"@types/yargs\": \"^17.0.35\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.5\",\n\t\t\"autotool\": \"^0.6.1\",\n\t\t\"commit-and-tag-version\": \"^12.7.1\",\n\t\t\"commitlint\": \"^20.5.3\",\n\t\t\"depcheck\": \"^1.4.7\",\n\t\t\"eslint\": \"^10.3.0\",\n\t\t\"husky\": \"^9.1.7\",\n\t\t\"lint-staged\": \"^16.4.0\",\n\t\t\"npm-check-updates\": \"^22.1.0\",\n\t\t\"prettier\": \"^3.8.3\",\n\t\t\"prettier-plugin-svelte\": \"^3.5.1\",\n\t\t\"prettier-plugin-tailwindcss\": \"^0.8.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"remark\": \"^15.0.1\",\n\t\t\"remark-cli\": \"^12.0.1\",\n\t\t\"stylelint\": \"^17.10.0\",\n\t\t\"svelte-check\": \"^4.4.7\",\n\t\t\"ts-node\": \"^10.9.2\",\n\t\t\"turbo\": \"^2.9.8\",\n\t\t\"turbo-ignore\": \"^2.9.8\",\n\t\t\"typedoc\": \"^0.28.19\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vitepress\": \"1.6.4\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","{\n\t\"name\": \"@alexaegis/autotool-plugin-workspace\",\n\t\"description\": \"This package contains generic workspace tools and scripts\",\n\t\"version\": \"0.15.1\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"workspace\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@types/node\": \"^25.6.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.10\",\n\t\t\"vite-plugin-dts\": \"^5.0.0\",\n\t\t\"vitest\": \"^4.1.5\"\n\t}\n}\n","import type {\n\tAutotoolPlugin,\n\tAutotoolPluginObject,\n\tNormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport rootPackageJson from '../../../package.json' with { type: 'json' };\nimport packageJson from '../package.json' with { type: 'json' };\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'pnpm workspace preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'pnpm-workspace.yaml'),\n\t\t\t\ttargetFile: 'pnpm-workspace.yaml',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package.json sort preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'package.sort.json'),\n\t\t\t\ttargetFile: join('.config', 'package.sort.json'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace engine preferences for node',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\t'engine-strict': true,\n\t\t\t\t\t},\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t\tnpm: undefined,\n\t\t\t\t\t\tpnpm: '>=9',\n\t\t\t\t\t},\n\t\t\t\t\tpackageManager: rootPackageJson.packageManager,\n\t\t\t\t\tworkspaces: ['apps/*', 'examples/*', 'fixtures/*', 'libs/*', 'packages/*'], // Some tools like typedoc will only read this field even though the same information is defined in pnpm-workspace.yaml\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and all autotool plugins as devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tnuke: 'nuke',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/nuke': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-commitlint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-depcheck': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-editorconfig': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-eslint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-git': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-github': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-husky': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ncu': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-prettier': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-publint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-remark': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-standard-version': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-stylelint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-svelte': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ts': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-turbo': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-typedoc': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vite': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitepress': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitest': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vscode': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-workspace': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'use esm',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\ttype: 'module',\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'repository metadata for trusted publishing',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\trepository: {\n\t\t\t\t\t\ttype: 'git',\n\t\t\t\t\t\turl: rootPackageJson.repository.url,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AESA,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,yBAAyB,gBAAY;IACrC,YAAY,KAAK,UAAU,sBAAsB;IACjD,YAAY;IACZ;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,yBAAyB,gBAAY;IACrC,YAAY,KAAK,UAAU,oBAAoB;IAC/C,YAAY,KAAK,WAAW,oBAAoB;IAChD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,QAAQ,EACP,iBAAiB,MACjB;KACD,SAAS;MACR,MAAM;MACN,KAAK,KAAA;MACL,MAAM;MACN;KACD,gBAAgB,kBAAgB;KAChC,YAAY;MAAC;MAAU;MAAc;MAAc;MAAU;MAAa;KAC1E;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,QACN;KACD,iBAAiB;MAChB,mBAAmB,IAAI,gBAAY;MACnC,yCAAyC,IAAI,gBAAY;MACzD,uCAAuC,IAAI,gBAAY;MACvD,2CAA2C,IAAI,gBAAY;MAC3D,qCAAqC,IAAI,gBAAY;MACrD,kCAAkC,IAAI,gBAAY;MAClD,qCAAqC,IAAI,gBAAY;MACrD,oCAAoC,IAAI,gBAAY;MACpD,kCAAkC,IAAI,gBAAY;MAClD,uCAAuC,IAAI,gBAAY;MACvD,sCAAsC,IAAI,gBAAY;MACtD,qCAAqC,IAAI,gBAAY;MACrD,+CAA+C,IAAI,gBAAY;MAC/D,wCAAwC,IAAI,gBAAY;MACxD,qCAAqC,IAAI,gBAAY;MACrD,iCAAiC,IAAI,gBAAY;MACjD,oCAAoC,IAAI,gBAAY;MACpD,sCAAsC,IAAI,gBAAY;MACtD,mCAAmC,IAAI,gBAAY;MACnD,wCAAwC,IAAI,gBAAY;MACxD,qCAAqC,IAAI,gBAAY;MACrD,qCAAqC,IAAI,gBAAY;MACrD,wCAAwC,IAAI,gBAAY;MACxD;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,MAAM,EACL,MAAM,UACN;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,MAAM,EACL,YAAY;KACX,MAAM;KACN,KAAK,kBAAgB,WAAW;KAChC,EACD;IACD;GACD;EACD"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../package.json","../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/workspace\",\n\t\"description\": \"base repo for common stuff in my other js projects\",\n\t\"version\": \"0.15.3\",\n\t\"license\": \"mit\",\n\t\"private\": true,\n\t\"keywords\": [\n\t\t\"eslint\",\n\t\t\"javascript\",\n\t\t\"js\",\n\t\t\"managed-by-autotool\",\n\t\t\"ts\",\n\t\t\"tsconfig\",\n\t\t\"turbo\",\n\t\t\"typescript\"\n\t],\n\t\"author\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"name\": \"Alex Aegis\",\n\t\t\"url\": \"https://github.com/AlexAegis\"\n\t},\n\t\"homepage\": \"https://github.com/AlexAegis/js-tooling\",\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"bugs\": {\n\t\t\"email\": \"alexaegis@pm.me\",\n\t\t\"url\": \"https://github.com/AlexAegis/js-tooling/issues\"\n\t},\n\t\"type\": \"module\",\n\t\"config\": {\n\t\t\"engine-strict\": true\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\",\n\t\t\"pnpm\": \">=9\"\n\t},\n\t\"packageManager\": \"pnpm@11.9.0\",\n\t\"workspaces\": [\n\t\t\"apps/*\",\n\t\t\"libs/*\",\n\t\t\"packages/*\"\n\t],\n\t\"scripts\": {\n\t\t\"lint\": \"turbo run lint_ --concurrency 16\",\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore --ignore-pattern packages --ignore-pattern libs --ignore-pattern apps .\",\n\t\t\"lint:style\": \"turbo run lint:style_ --concurrency 16\",\n\t\t\"lint:style:css\": \"turbo run lint:style:css_ --concurrency 16\",\n\t\t\"lint:style:html\": \"turbo run lint:style:html_ --concurrency 16\",\n\t\t\"lint:style:scss\": \"turbo run lint:style:scss_ --concurrency 16\",\n\t\t\"lint:svelte\": \"turbo run lint:svelte_ --concurrency 16\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16\",\n\t\t\"build\": \"turbo run build-lib_ build-app_ --concurrency 16\",\n\t\t\"build-app\": \"turbo run build-app_ --concurrency 16\",\n\t\t\"build-lib\": \"turbo run build-lib_ --concurrency 16\",\n\t\t\"dev\": \"pnpm run --dir packages/turbowatch build && pnpm run --dir apps/svelte-example-app dev\",\n\t\t\"docs\": \"vitepress dev ./docs/\",\n\t\t\"docs:build\": \"vitepress build ./docs/\",\n\t\t\"docs:preview\": \"vitepress preview ./docs/\",\n\t\t\"format\": \"turbo run format_ --concurrency 16\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --ignore-path .config/workspace-only.prettierignore --write .\",\n\t\t\"ncu\": \"ncu --configFilePath ./.config/ && pnpm up\",\n\t\t\"nuke\": \"nuke\",\n\t\t\"postinstall\": \"husky install && turbo run build-lib_ --concurrency 16 --filter @alexaegis/vite --filter @alexaegis/eslint-config* --filter @alexaegis/prettier-config* --filter @alexaegis/autotool-plugin-* --filter @alexaegis/stylelint-* && autotool\",\n\t\t\"release\": \"commit-and-tag-version --sign --commit-all\",\n\t\t\"release:major\": \"commit-and-tag-version --sign --commit-all --release-as major\",\n\t\t\"release:minor\": \"commit-and-tag-version --sign --commit-all --release-as minor\",\n\t\t\"release:patch\": \"commit-and-tag-version --sign --commit-all --release-as patch\",\n\t\t\"start\": \"pnpm run --dir apps/svelte-example-app start\",\n\t\t\"typedoc\": \"turbo run typedoc_ --concurrency 16\",\n\t\t\"typedoc_\": \"typedoc\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/autotool-plugin-commitlint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-depcheck\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-editorconfig\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-eslint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-git\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-github\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-husky\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ncu\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-prettier\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-publint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-remark\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-standard-version\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-stylelint\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-svelte\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-ts\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-turbo\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-typedoc\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vite\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitepress\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-vscode\": \"workspace:^\",\n\t\t\"@alexaegis/autotool-plugin-workspace\": \"workspace:^\",\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/eslint-config-core\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/stylelint-config\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@commitlint/config-conventional\": \"^20.5.3\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/eslint\": \"^9.6.1\",\n\t\t\"@types/node\": \"^26.0.0\",\n\t\t\"@types/yargs\": \"^17.0.35\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.9\",\n\t\t\"autotool\": \"^0.6.1\",\n\t\t\"commit-and-tag-version\": \"^12.7.3\",\n\t\t\"commitlint\": \"^20.5.3\",\n\t\t\"depcheck\": \"^1.4.7\",\n\t\t\"eslint\": \"^10.5.0\",\n\t\t\"husky\": \"^9.1.7\",\n\t\t\"lint-staged\": \"^17.0.8\",\n\t\t\"npm-check-updates\": \"^22.2.7\",\n\t\t\"prettier\": \"^3.8.4\",\n\t\t\"prettier-plugin-svelte\": \"^4.1.1\",\n\t\t\"prettier-plugin-tailwindcss\": \"^0.8.0\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"remark\": \"^15.0.1\",\n\t\t\"remark-cli\": \"^12.0.1\",\n\t\t\"stylelint\": \"^17.13.0\",\n\t\t\"svelte-check\": \"^4.7.0\",\n\t\t\"ts-node\": \"^10.9.2\",\n\t\t\"turbo\": \"^2.9.18\",\n\t\t\"turbo-ignore\": \"^2.9.18\",\n\t\t\"typedoc\": \"^0.28.19\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vitepress\": \"1.6.4\",\n\t\t\"vitest\": \"^4.1.9\"\n\t}\n}\n","{\n\t\"name\": \"@alexaegis/autotool-plugin-workspace\",\n\t\"description\": \"This package contains generic workspace tools and scripts\",\n\t\"version\": \"0.15.3\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"workspace\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\"\n\t},\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./package.sort\": \"./static/package.sort.json\",\n\t\t\"./pnpm-workspace\": \"./static/pnpm-workspace.yaml\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/nuke\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@types/node\": \"^26.0.0\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.1.0\",\n\t\t\"vite-plugin-dts\": \"^5.0.2\",\n\t\t\"vitest\": \"^4.1.9\"\n\t}\n}\n","import type {\n\tAutotoolPlugin,\n\tAutotoolPluginObject,\n\tNormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { execFileSync } from 'node:child_process';\nimport { join } from 'node:path';\nimport rootPackageJson from '../../../package.json' with { type: 'json' };\nimport packageJson from '../package.json' with { type: 'json' };\n\n/**\n * Resolves the repository url from the git `origin` remote of the workspace it's\n * running in, normalized to the `git+https://host/owner/repo.git` form npm\n * expects. Returns undefined when there's no git repository or no `origin`\n * remote, so the `repository` field can be left untouched instead of being\n * polluted with the wrong url.\n */\nconst resolveRepositoryUrlFromGitOrigin = (cwd: string): string | undefined => {\n\tlet raw: string;\n\ttry {\n\t\traw = execFileSync('git', ['remote', 'get-url', 'origin'], {\n\t\t\tcwd,\n\t\t\tencoding: 'utf8',\n\t\t\tstdio: ['ignore', 'pipe', 'ignore'],\n\t\t}).trim();\n\t} catch {\n\t\treturn undefined;\n\t}\n\n\tif (!raw) {\n\t\treturn undefined;\n\t}\n\n\t// git@host:owner/repo(.git) -> https://host/owner/repo(.git)\n\tconst sshMatch = /^git@([^:]+):(.+)$/.exec(raw);\n\tlet httpsUrl = sshMatch ? `https://${sshMatch[1]}/${sshMatch[2]}` : raw;\n\n\t// ssh://git@host/owner/repo(.git) -> https://host/owner/repo(.git)\n\thttpsUrl = httpsUrl.replace(/^ssh:\\/\\/git@/, 'https://');\n\n\tif (!httpsUrl.endsWith('.git')) {\n\t\thttpsUrl = `${httpsUrl}.git`;\n\t}\n\n\treturn httpsUrl.startsWith('git+') ? httpsUrl : `git+${httpsUrl}`;\n};\n\nexport const plugin: AutotoolPlugin = (\n\toptions: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\tconst rootRepository = options.rootWorkspacePackage.packageJson.repository as\n\t\t| { type?: string; url?: string }\n\t\t| string\n\t\t| undefined;\n\tconst rootRepositoryUrlFromPackageJson =\n\t\ttypeof rootRepository === 'string' ? rootRepository : rootRepository?.url;\n\tconst rootRepositoryUrl =\n\t\tresolveRepositoryUrlFromGitOrigin(options.rootWorkspacePackage.packagePath) ??\n\t\trootRepositoryUrlFromPackageJson;\n\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'pnpm workspace preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'pnpm-workspace.yaml'),\n\t\t\t\ttargetFile: 'pnpm-workspace.yaml',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package.json sort preferences',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t\tsourceFile: join('static', 'package.sort.json'),\n\t\t\t\ttargetFile: join('.config', 'package.sort.json'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace engine preferences for node',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\t'engine-strict': true,\n\t\t\t\t\t},\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t\tnpm: undefined,\n\t\t\t\t\t\tpnpm: '>=9',\n\t\t\t\t\t},\n\t\t\t\t\tpackageManager: rootPackageJson.packageManager,\n\t\t\t\t\tworkspaces: ['apps/*', 'libs/*', 'packages/*'], // Some tools like typedoc will only read this field even though the same information is defined in pnpm-workspace.yaml\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'workspace scripts and all autotool plugins as devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\tnuke: 'nuke',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/nuke': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-commitlint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-depcheck': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-editorconfig': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-eslint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-git': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-github': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-husky': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ncu': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-prettier': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-publint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-remark': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-standard-version': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-stylelint': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-svelte': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-ts': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-turbo': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-typedoc': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vite': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitepress': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vitest': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-vscode': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t\t'@alexaegis/autotool-plugin-workspace': `^${packageJson.version}`, // versioned together\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'use esm',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\ttype: 'module',\n\t\t\t\t},\n\t\t\t},\n\t\t\t...(rootRepositoryUrl\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: 'repository metadata for trusted publishing',\n\t\t\t\t\t\t\texecutor: 'packageJson' as const,\n\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\trepository: {\n\t\t\t\t\t\t\t\t\ttype: 'git',\n\t\t\t\t\t\t\t\t\turl: rootRepositoryUrl,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: []),\n\t\t\t{\n\t\t\t\tdescription: 'engines.node minimum on every package',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tdata: {\n\t\t\t\t\tengines: {\n\t\t\t\t\t\tnode: '>=22.6.0',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"name": "@alexaegis/autotool-plugin-workspace",
|
|
3
|
+
"description": "This package contains generic workspace tools and scripts",
|
|
4
|
+
"version": "0.15.3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"archetype": {
|
|
8
|
+
"platform": "node",
|
|
9
|
+
"framework": "autotool",
|
|
10
|
+
"language": "ts",
|
|
11
|
+
"kind": "lib"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"autotool-plugin",
|
|
15
|
+
"managed-by-autotool",
|
|
16
|
+
"workspace"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
20
|
+
"type": "git"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"require": "./dist/index.cjs",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": "./package.json",
|
|
33
|
+
"./package.sort": "./static/package.sort.json",
|
|
34
|
+
"./pnpm-workspace": "./static/pnpm-workspace.yaml",
|
|
35
|
+
"./readme": "./readme.md"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"static"
|
|
41
|
+
],
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=22.6.0"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
47
|
+
"lint:depcheck_": "depcheck",
|
|
48
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
49
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
50
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
51
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
52
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
53
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
54
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
55
|
+
"lint:tsc_": "tsc --noEmit",
|
|
56
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
57
|
+
"publint_": "publint",
|
|
58
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
59
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
60
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
61
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
62
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
63
|
+
"build-lib_": "vite build",
|
|
64
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
65
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
66
|
+
},
|
|
67
|
+
"exports": {
|
|
68
|
+
".": {
|
|
69
|
+
"types": "./src/index.ts",
|
|
70
|
+
"import": "./dist/index.js",
|
|
71
|
+
"require": "./dist/index.cjs",
|
|
72
|
+
"default": "./dist/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./package.json": "./package.json",
|
|
75
|
+
"./package.sort": "./static/package.sort.json",
|
|
76
|
+
"./pnpm-workspace": "./static/pnpm-workspace.yaml",
|
|
77
|
+
"./readme": "./readme.md"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@alexaegis/logging": "workspace:^",
|
|
81
|
+
"autotool-plugin": "^0.6.1"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
85
|
+
"@alexaegis/nuke": "workspace:^",
|
|
86
|
+
"@alexaegis/ts": "workspace:^",
|
|
87
|
+
"@alexaegis/vite": "workspace:^",
|
|
88
|
+
"@alexaegis/vitest": "workspace:^",
|
|
89
|
+
"@types/node": "^26.0.0",
|
|
90
|
+
"publint": "^0.3.21",
|
|
91
|
+
"typescript": "^6.0.3",
|
|
92
|
+
"vite": "^8.1.0",
|
|
93
|
+
"vite-plugin-dts": "^5.0.2",
|
|
94
|
+
"vitest": "^4.1.9"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
;
|
|
98
|
+
|
|
99
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexaegis/autotool-plugin-workspace",
|
|
3
3
|
"description": "This package contains generic workspace tools and scripts",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"workspace"
|
|
17
17
|
],
|
|
18
18
|
"repository": {
|
|
19
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
19
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
20
20
|
"type": "git"
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"dist",
|
|
28
28
|
"static"
|
|
29
29
|
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.6.0"
|
|
32
|
+
},
|
|
30
33
|
"exports": {
|
|
31
34
|
".": {
|
|
32
35
|
"types": "./dist/index.d.ts",
|
|
@@ -41,20 +44,20 @@
|
|
|
41
44
|
},
|
|
42
45
|
"dependencies": {
|
|
43
46
|
"autotool-plugin": "^0.6.1",
|
|
44
|
-
"@alexaegis/logging": "^0.15.
|
|
47
|
+
"@alexaegis/logging": "^0.15.3"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"publint": "^0.3.
|
|
50
|
+
"@types/node": "^26.0.0",
|
|
51
|
+
"publint": "^0.3.21",
|
|
49
52
|
"typescript": "^6.0.3",
|
|
50
|
-
"vite": "^8.0
|
|
51
|
-
"vite-plugin-dts": "^5.0.
|
|
52
|
-
"vitest": "^4.1.
|
|
53
|
-
"@alexaegis/
|
|
54
|
-
"@alexaegis/
|
|
55
|
-
"@alexaegis/
|
|
56
|
-
"@alexaegis/
|
|
57
|
-
"@alexaegis/vitest": "^0.15.
|
|
53
|
+
"vite": "^8.1.0",
|
|
54
|
+
"vite-plugin-dts": "^5.0.2",
|
|
55
|
+
"vitest": "^4.1.9",
|
|
56
|
+
"@alexaegis/nuke": "^0.15.3",
|
|
57
|
+
"@alexaegis/eslint-config-vitest": "^0.15.3",
|
|
58
|
+
"@alexaegis/vite": "^0.15.3",
|
|
59
|
+
"@alexaegis/ts": "^0.15.3",
|
|
60
|
+
"@alexaegis/vitest": "^0.15.3"
|
|
58
61
|
},
|
|
59
62
|
"scripts": {
|
|
60
63
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-workspace",
|
|
@@ -6,8 +6,17 @@ packages:
|
|
|
6
6
|
- libs/*
|
|
7
7
|
- packages/*
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
# Prevent recursive `pnpm install` from being triggered by lifecycle/run scripts
|
|
10
|
+
# (e.g. `vite build` inside `postinstall`), which would re-enter `postinstall`.
|
|
11
|
+
verifyDepsBeforeRun: false
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
# pnpm 10+ requires explicit approval for build/lifecycle scripts of dependencies.
|
|
14
|
+
# Map of package name -> boolean. `true` = run the package's install scripts.
|
|
15
|
+
allowBuilds:
|
|
16
|
+
esbuild: true
|
|
17
|
+
svelte-preprocess: true
|
|
18
|
+
|
|
19
|
+
# pnpm 11+ defaults `minimumReleaseAge` to 1440 (24h), which delays freshly
|
|
20
|
+
# published packages and makes pnpm auto-write a `minimumReleaseAgeExclude` list
|
|
21
|
+
# on install. Set to 0 to opt out of that supply-chain delay entirely.
|
|
22
|
+
minimumReleaseAge: 0
|