create-vite-react-boot 1.0.13 → 1.0.15

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/lib/apply.js CHANGED
@@ -24,8 +24,6 @@ export async function applyScaffold({ root /*, template*/ }) {
24
24
  write(path.join(root, "src", "pages", "Dashboard.tsx"), files.dashboard);
25
25
  write(path.join(root, "src", "lib", "storage.ts"), files.storage);
26
26
  write(path.join(root, "src", "lib", "auth.tsx"), files.authCtx);
27
- write(path.join(root, "src", "api", "client.ts"), files.axiosClient);
28
- write(path.join(root, "src", "api", "auth.ts"), files.axiosAuthApi);
29
27
 
30
28
  // 3) 끝 (App.tsx / main.tsx는 이미 cli에서 생성)
31
29
  }
@@ -286,17 +284,6 @@ export function useAuth() {
286
284
  if (!ctx) throw new Error('useAuth must be used within AuthProvider')
287
285
  return ctx
288
286
  }
289
- `,
290
- axiosAuthApi: `import { api } from './client'
291
- type Session = { id:string; email:string; name:string }
292
- export async function register(email:string, name:string, password:string):Promise<Session>{
293
- const { data } = await api.post('/register', { email, name, password })
294
- return data
295
- }
296
- export async function login(email:string, password:string):Promise<Session>{
297
- const { data } = await api.post('/login', { email, password })
298
- return data
299
- }
300
287
  `,
301
288
  };
302
289
  }
package/lib/files.js CHANGED
@@ -258,17 +258,6 @@ api.interceptors.request.use(cfg=>{
258
258
  }
259
259
  return cfg
260
260
  })
261
- `,
262
- axiosAuthApi: `import { api } from './client'
263
- type Session = { id:string; email:string; name:string }
264
- export async function register(email:string, name:string, password:string):Promise<Session>{
265
- const { data } = await api.post('/register', { email, name, password })
266
- return data
267
- }
268
- export async function login(email:string, password:string):Promise<Session>{
269
- const { data } = await api.post('/login', { email, password })
270
- return data
271
- }
272
261
  `,
273
262
  mainTsx: `import React from 'react'
274
263
  import ReactDOM from 'react-dom/client'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vite-react-boot",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Create a Vite + React + TS app with Tailwind, axios, AuthContext, login/register, routing.",
5
5
  "type": "module",
6
6
  "bin": {