create-jsc-vite-react-ts 1.3.2 → 1.3.4

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/bin/cli.js CHANGED
@@ -74,7 +74,8 @@ const run = async () => {
74
74
  });
75
75
  }
76
76
 
77
- const packageJsonPath = path.join(targetDir, "frontend", "package.json");
77
+ const projectDir = path.join(targetDir, "frontend");
78
+ const packageJsonPath = path.join(projectDir, "package.json");
78
79
  const packageJson = fs.readJsonSync(packageJsonPath);
79
80
  packageJson.name = projectName;
80
81
  fs.writeJsonSync(packageJsonPath, packageJson, { spaces: 2 });
@@ -89,7 +90,7 @@ const run = async () => {
89
90
 
90
91
  try {
91
92
  execSync(`${packageManager} install`, {
92
- cwd: targetDir,
93
+ cwd: projectDir,
93
94
  stdio: "inherit",
94
95
  });
95
96
  console.log(chalk.green("\n✓ Dependencies installed"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jsc-vite-react-ts",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Create a modern React app with TypeScript, Vite, Tailwind CSS, and Vitest",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,15 +2,15 @@ name: Build
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - "main"
5
+ tags:
6
+ - "v*.*.*"
7
7
  release:
8
8
  types: [published]
9
9
 
10
10
  env:
11
- IMAGE_NAME: jsc-vite-test
12
- IMAGE_TITLE: Default JSC Vite React TS Image
13
- IMAGE_DESCRIPTION: This is the image for JSC's Vite React TS template.
11
+ IMAGE_NAME: my-app-image
12
+ IMAGE_TITLE: My App Image
13
+ IMAGE_DESCRIPTION: This is the image for My App Image.
14
14
  SRC_PATH: frontend/
15
15
  DOCKERFILE_PATH: etc/docker/Dockerfile
16
16
  NODE_VERSION: "24"
@@ -23,6 +23,8 @@ jobs:
23
23
  steps:
24
24
  - name: Checkout
25
25
  uses: actions/checkout@v6
26
+ with:
27
+ ref: ${{ github.ref }}
26
28
 
27
29
  - name: Set up Node.js
28
30
  uses: actions/setup-node@v6
@@ -50,6 +52,8 @@ jobs:
50
52
  steps:
51
53
  - name: Checkout
52
54
  uses: actions/checkout@v6
55
+ with:
56
+ ref: ${{ github.ref }}
53
57
 
54
58
  - name: Set up Node.js
55
59
  uses: actions/setup-node@v6
@@ -76,6 +80,8 @@ jobs:
76
80
  steps:
77
81
  - name: Checkout
78
82
  uses: actions/checkout@v6
83
+ with:
84
+ ref: ${{ github.ref }}
79
85
 
80
86
  - name: Set up Node.js
81
87
  uses: actions/setup-node@v6
@@ -115,6 +121,8 @@ jobs:
115
121
  steps:
116
122
  - name: Checkout
117
123
  uses: actions/checkout@v6
124
+ with:
125
+ ref: ${{ github.ref }}
118
126
 
119
127
  - name: Download artifact
120
128
  uses: actions/download-artifact@v6
@@ -142,12 +150,13 @@ jobs:
142
150
  needs:
143
151
  - lint
144
152
  - upload-coverage
145
- if: startsWith(github.ref, 'refs/tags/v')
153
+ if: github.event_name == 'release' && github.event.release.prerelease == false && startsWith(github.ref, 'refs/tags/v')
146
154
 
147
155
  steps:
148
156
  - name: Checkout
149
157
  uses: actions/checkout@v6
150
158
  with:
159
+ ref: ${{ github.ref }}
151
160
  fetch-depth: 0
152
161
 
153
162
  - name: Set environment variable
@@ -1,5 +1,8 @@
1
1
  FROM node:24-alpine AS builder
2
2
 
3
+ RUN apk update && apk upgrade
4
+ RUN apk add --no-cache git
5
+
3
6
  WORKDIR /app
4
7
  COPY frontend/ ./
5
8
 
@@ -15,7 +15,7 @@
15
15
  "update-version": "./scripts/update-version.sh",
16
16
  "create-tag": "./scripts/create-tag.sh",
17
17
  "full-tag": "yarn update-version && yarn create-tag",
18
- "prepare": "git init"
18
+ "prepare": "cd .. && git init --quiet"
19
19
  },
20
20
  "dependencies": {
21
21
  "react": "^19.2.0",