kaddidlehopper 0.7.4 → 0.7.5
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/.github-disable/workflows/release-please.yml +52 -0
- package/dist/cli.js +7 -2
- package/package.json +1 -1
- package/src/cli.ts +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-please
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
jobs:
|
|
8
|
+
create-release:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
outputs:
|
|
11
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
|
14
|
+
id: get-token
|
|
15
|
+
with:
|
|
16
|
+
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
|
|
17
|
+
app-id: ${{ secrets.TOKENS_APP_ID }}
|
|
18
|
+
|
|
19
|
+
- uses: googleapis/release-please-action@v4
|
|
20
|
+
id: release
|
|
21
|
+
with:
|
|
22
|
+
token: ${{ steps.get-token.outputs.token }}
|
|
23
|
+
release-type: node
|
|
24
|
+
package-name: "@netlify/ts-cli"
|
|
25
|
+
|
|
26
|
+
publish:
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
permissions:
|
|
29
|
+
id-token: write
|
|
30
|
+
contents: write
|
|
31
|
+
pull-requests: write
|
|
32
|
+
needs: create-release
|
|
33
|
+
if: ${{ needs.create-release.outputs.release_created }}
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v6
|
|
36
|
+
|
|
37
|
+
- uses: actions/setup-node@v6
|
|
38
|
+
with:
|
|
39
|
+
node-version: '24'
|
|
40
|
+
cache: npm
|
|
41
|
+
registry-url: 'https://registry.npmjs.org'
|
|
42
|
+
|
|
43
|
+
- name: Install core dependencies
|
|
44
|
+
run: npm ci --no-audit
|
|
45
|
+
|
|
46
|
+
- name: Build project
|
|
47
|
+
run: npm run build
|
|
48
|
+
|
|
49
|
+
- name: Publish netlify-cli package
|
|
50
|
+
run: npm publish --provenance
|
|
51
|
+
env:
|
|
52
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/dist/cli.js
CHANGED
|
@@ -81,7 +81,7 @@ export function cli() {
|
|
|
81
81
|
if (existsSync(indexHtmlPath)) {
|
|
82
82
|
await rm(indexHtmlPath);
|
|
83
83
|
}
|
|
84
|
-
console.log(chalk.bold.cyan(`Creating a new Netlify TanStack Start app in ${chalk.white(targetDir)}...`));
|
|
84
|
+
console.log(chalk.bold.cyan(`Creating a new Netlify TanStack Start app in directory ${chalk.white(targetDir)}...`));
|
|
85
85
|
console.log(chalk.gray(`Using starter: ${starterId}`));
|
|
86
86
|
const manifest = await fetch(MANIFEST_URL).then((r) => r.json());
|
|
87
87
|
const starterEntry = manifest.starters.find((s) => s.id === starterId);
|
|
@@ -143,7 +143,12 @@ export function cli() {
|
|
|
143
143
|
'pnpm';
|
|
144
144
|
console.log(chalk.gray(`⟳ Installing dependencies with ${pm}...`));
|
|
145
145
|
try {
|
|
146
|
-
|
|
146
|
+
let cmd = `${pm} install`;
|
|
147
|
+
if (pm === 'npm') {
|
|
148
|
+
cmd += ' --no-audit --no-fund --prefer-offline';
|
|
149
|
+
console.log(chalk.gray(` ${cmd}`));
|
|
150
|
+
}
|
|
151
|
+
execSync(cmd, { cwd: targetDir, stdio: 'inherit' });
|
|
147
152
|
console.log(chalk.green('✓ Dependencies installed'));
|
|
148
153
|
}
|
|
149
154
|
catch {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -110,7 +110,7 @@ export function cli() {
|
|
|
110
110
|
|
|
111
111
|
console.log(
|
|
112
112
|
chalk.bold.cyan(
|
|
113
|
-
`Creating a new Netlify TanStack Start app in ${chalk.white(targetDir)}...`,
|
|
113
|
+
`Creating a new Netlify TanStack Start app in directory ${chalk.white(targetDir)}...`,
|
|
114
114
|
),
|
|
115
115
|
)
|
|
116
116
|
console.log(chalk.gray(`Using starter: ${starterId}`))
|