create-vite-react-boot 1.0.14 → 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,7 +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", "auth.ts"), files.axiosAuthApi);
28
27
 
29
28
  // 3) 끝 (App.tsx / main.tsx는 이미 cli에서 생성)
30
29
  }
@@ -285,17 +284,6 @@ export function useAuth() {
285
284
  if (!ctx) throw new Error('useAuth must be used within AuthProvider')
286
285
  return ctx
287
286
  }
288
- `,
289
- axiosAuthApi: `import { api } from './client'
290
- type Session = { id:string; email:string; name:string }
291
- export async function register(email:string, name:string, password:string):Promise<Session>{
292
- const { data } = await api.post('/register', { email, name, password })
293
- return data
294
- }
295
- export async function login(email:string, password:string):Promise<Session>{
296
- const { data } = await api.post('/login', { email, password })
297
- return data
298
- }
299
287
  `,
300
288
  };
301
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.14",
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": {