create-presmium 1.0.0-rc.1 → 1.0.0-rc.2
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/package.json +3 -3
- package/src/create.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-presmium",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"description": "presmium new, or pnpm create presmium: a new Presmium lecture, workspace or plugin",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"jiti": "^2.7.0",
|
|
41
|
-
"@lincyaw/kernel": "1.0.0-rc.
|
|
41
|
+
"@lincyaw/kernel": "1.0.0-rc.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@lincyaw/cli": "1.0.0-rc.
|
|
44
|
+
"@lincyaw/cli": "1.0.0-rc.2"
|
|
45
45
|
},
|
|
46
46
|
"presmium": {
|
|
47
47
|
"generated": [
|
package/src/create.ts
CHANGED
|
@@ -156,5 +156,6 @@ function agentFiles(dir: string, skills: string[]): void {
|
|
|
156
156
|
function gitInit(dir: string): void {
|
|
157
157
|
const inside = spawnSync('git', ['rev-parse', '--is-inside-work-tree'], { cwd: dir, encoding: 'utf8' })
|
|
158
158
|
if (inside.error || inside.stdout.trim() === 'true') return
|
|
159
|
-
|
|
159
|
+
// The Pages workflow publishes on pushes to main, whatever the machine's default branch is.
|
|
160
|
+
spawnSync('git', ['init', '--quiet', '--initial-branch=main'], { cwd: dir, stdio: 'ignore' })
|
|
160
161
|
}
|