@teispace/next-maker 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.1.1](https://github.com/teispace/npm-packages/compare/next-maker-v5.1.0...next-maker-v5.1.1) (2026-09-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **next-maker:** strip a Markdown anchor that leads its line ([#178](https://github.com/teispace/npm-packages/issues/178)) ([0f8bb2f](https://github.com/teispace/npm-packages/commit/0f8bb2f9aea3c60f1cda00c9cb753b08771c50f1))
|
|
9
|
+
|
|
3
10
|
## [5.1.0](https://github.com/teispace/npm-packages/compare/next-maker-v5.0.7...next-maker-v5.1.0) (2026-09-06)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Command as Zp}from"commander";var De={name:"@teispace/next-maker",version:"5.1.
|
|
2
|
+
import{Command as Zp}from"commander";var De={name:"@teispace/next-maker",version:"5.1.1",description:"Create and grow Next.js 16 applications from the Teispace starter: composable init, feature-aware setup and doctor, and generators for the server-first data layer.",keywords:["nextjs","react","typescript","tailwindcss","starter","template","redux","zustand","tanstack-query","server-actions","cli"],type:"module",homepage:"https://github.com/teispace/npm-packages/tree/main/packages/next-maker#readme",bugs:{url:"https://github.com/teispace/npm-packages/issues"},license:"MIT",author:"Teispace",files:["dist","README.md","LICENSE","CHANGELOG.md"],bin:"dist/index.js",repository:{type:"git",url:"git+https://github.com/teispace/npm-packages.git",directory:"packages/next-maker"},scripts:{build:"tsx build.ts",start:"node dist/index.js",dev:"tsx --watch src/index.ts",test:"vitest run","test:watch":"vitest","test:cov":"vitest run --coverage","type-check":"tsc --noEmit",clean:"rm -rf dist",prepublishOnly:"yarn clean && yarn build",smoke:"tsx scripts/smoke.ts"},dependencies:{commander:"^15.0.0",degit:"^3.9.0",enquirer:"^2.4.1",ora:"^9.4.1",picocolors:"^1.1.1","png-to-ico":"^3.0.2",sharp:"^0.35.4"},devDependencies:{"@types/degit":"^2.8.6","@types/node":"^26.4.1",esbuild:"^0.28.2",tsx:"^4.23.12",typescript:"^6.0.3",vitest:"^4.1.11"},engines:{node:">=24.0.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org/"}};import{copyFile as ga}from"node:fs/promises";import qe from"node:path";import j from"picocolors";var mn=/@next-maker:([\w-]+)(?::(start|end))?/,ai=/^\s*(?:\{\s*\/\*.*?\*\/\s*\}|\/\*.*?\*\/|<!--.*?-->|\/\/.*|#.*)\s*$/,ci=e=>e.replace(/\s*\{\s*\/\*[^*]*@next-maker:[^*]*\*\/\s*\}\s*$/,"").replace(/\s*\/\*[^*]*@next-maker:[^*]*\*\/\s*$/,"").replace(/\s*<!--[^>]*@next-maker:[^>]*-->\s*$/,"").replace(/^\s*<!--[^>]*@next-maker:[^>]*-->\s*/,"").replace(/\s*\/\/[^\n]*@next-maker:[^\n]*$/,"").replace(/\s*#[^\n]*@next-maker:[^\n]*$/,""),tr=(e,{off:t})=>{let r=e.split(`
|
|
3
3
|
`),n=[];for(let o=0;o<r.length;o++){let s=r[o],i=s.match(mn);if(!i){n.push(s);continue}let[,a,c]=i,m=t.has(a);if(c==="start"){let u=pi(r,o+1,a);m&&(o=u);continue}if(c==="end")continue;let p=ai.test(s);if(m){p&&o++;continue}p||n.push(ci(s))}return n.join(`
|
|
4
4
|
`)},pi=(e,t,r)=>{for(let n=t;n<e.length;n++){let o=e[n].match(mn);if(o&&o[1]===r&&o[2]==="end")return n}throw new Error(`Anchor @next-maker:${r}:start has no matching :end`)},tt=e=>e.includes("@next-maker:"),un=(e,t)=>{let r=e.split(`
|
|
5
5
|
`),n=[],o=new RegExp(`^import\\s+${t}\\s+from\\s+['"][^'"]+['"];?\\s*$`),s=/^(import\s+(?:type\s+)?)\{([^}]+)\}(\s+from\s+['"][^'"]+['"];?\s*)$/;for(let i of r){if(o.test(i))continue;let a=i.match(s);if(a){let c=a[2].split(",").map(p=>p.trim()).filter(Boolean),m=c.filter(p=>p.replace(/^type\s+/,"").split(/\s+as\s+/)[0]!==t);if(m.length===0)continue;if(m.length<c.length){n.push(`${a[1]}{ ${m.join(", ")} }${a[3]}`);continue}}n.push(i)}return n.join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teispace/next-maker",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Create and grow Next.js 16 applications from the Teispace starter: composable init, feature-aware setup and doctor, and generators for the server-first data layer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nextjs",
|