frontpl 0.6.1 → 0.6.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/README.md
CHANGED
|
@@ -50,6 +50,7 @@ Generated output includes (based on options):
|
|
|
50
50
|
- `.editorconfig`, `.gitignore`, `.gitattributes`
|
|
51
51
|
- `package.json` (+ scripts like optional `lint`, `format:check`, `test`, `build`)
|
|
52
52
|
- `tsconfig.json`, `src/index.ts`
|
|
53
|
+
- Generated `tsconfig.json` enables `allowImportingTsExtensions` for `.ts` import paths
|
|
53
54
|
- Relative TypeScript imports use explicit `.ts` extensions (e.g. generated `src/index.test.ts`)
|
|
54
55
|
- Optional configs: `oxlint.config.ts`, `.oxfmtrc.json`, `tsdown.config.ts`
|
|
55
56
|
- Optional GitHub Actions workflows in `.github/workflows/`
|
|
@@ -57,6 +58,7 @@ Generated output includes (based on options):
|
|
|
57
58
|
When `pnpm workspace mode` is enabled:
|
|
58
59
|
|
|
59
60
|
- Root contains `pnpm-workspace.yaml` and the workspace `package.json`
|
|
61
|
+
- Workspace root `package.json` includes `"type": "module"`
|
|
60
62
|
- `oxlint`/`oxfmt` scripts, dependencies, and config files are generated at the workspace root
|
|
61
63
|
- App/library package is scaffolded under `packages/<name>/` with its own `package.json`, `src`, and `tsconfig.json`
|
|
62
64
|
- If root `oxlint` is enabled, package `package.json` does not add redundant `typecheck: tsc --noEmit`
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runBump, i as runCi, n as runOxfmt, o as runAdd, r as runOxlint, s as runInit, t as runPackage } from "./package-
|
|
2
|
+
import { a as runBump, i as runCi, n as runOxfmt, o as runAdd, r as runOxlint, s as runInit, t as runPackage } from "./package-ChZ_08zS.mjs";
|
|
3
3
|
import bin from "tiny-bin";
|
|
4
4
|
|
|
5
5
|
//#region src/cli.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as runBump, c as validateProjectName, d as oxlintConfigTemplate, f as packageJsonTemplate, i as runCi, l as githubCliCiWorkflowTemplate, n as runOxfmt, o as runAdd, p as workspaceRootPackageJsonTemplate, r as runOxlint, s as runInit, t as runPackage, u as githubDependabotTemplate } from "./package-
|
|
1
|
+
import { a as runBump, c as validateProjectName, d as oxlintConfigTemplate, f as packageJsonTemplate, i as runCi, l as githubCliCiWorkflowTemplate, n as runOxfmt, o as runAdd, p as workspaceRootPackageJsonTemplate, r as runOxlint, s as runInit, t as runPackage, u as githubDependabotTemplate } from "./package-ChZ_08zS.mjs";
|
|
2
2
|
|
|
3
3
|
export { githubCliCiWorkflowTemplate, githubDependabotTemplate, oxlintConfigTemplate, packageJsonTemplate, runAdd, runBump, runCi, runInit, runOxfmt, runOxlint, runPackage, validateProjectName, workspaceRootPackageJsonTemplate };
|
|
@@ -90,6 +90,7 @@ function tsconfigTemplate() {
|
|
|
90
90
|
target: "ES2022",
|
|
91
91
|
module: "ESNext",
|
|
92
92
|
moduleResolution: "Bundler",
|
|
93
|
+
allowImportingTsExtensions: true,
|
|
93
94
|
strict: true,
|
|
94
95
|
skipLibCheck: true,
|
|
95
96
|
noEmit: true
|
|
@@ -207,6 +208,7 @@ function workspaceRootPackageJsonTemplate(opts) {
|
|
|
207
208
|
const manifest = {
|
|
208
209
|
name: opts.name,
|
|
209
210
|
private: true,
|
|
211
|
+
type: "module",
|
|
210
212
|
packageManager: opts.packageManager
|
|
211
213
|
};
|
|
212
214
|
if (Object.keys(scripts).length > 0) manifest.scripts = scripts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frontpl",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Interactive CLI to scaffold standardized frontend project templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@kingsword/lint-config": "^0.2.1",
|
|
55
55
|
"@types/node": "^25.0.10",
|
|
56
|
-
"oxfmt": "^0.
|
|
56
|
+
"oxfmt": "^0.36.0",
|
|
57
57
|
"oxlint": "^1.46.0",
|
|
58
|
-
"oxlint-tsgolint": "^0.
|
|
58
|
+
"oxlint-tsgolint": "^0.15.0",
|
|
59
59
|
"tsdown": "^0.20.1",
|
|
60
60
|
"typescript": "^5.9.3"
|
|
61
61
|
},
|