create-bdpa-react-scaffold 1.8.8 → 1.8.9

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.
Files changed (2) hide show
  1. package/create-ui-lib.js +6 -0
  2. package/package.json +1 -1
package/create-ui-lib.js CHANGED
@@ -354,9 +354,15 @@ module.exports = {
354
354
  write("vite.config.mts", `
355
355
  import { defineConfig } from "vite";
356
356
  import react from "@vitejs/plugin-react-swc";
357
+ import path from "path";
357
358
 
358
359
  export default defineConfig({
359
360
  plugins: [react()],
361
+ resolve: {
362
+ alias: {
363
+ "@": path.resolve(__dirname, "./src"),
364
+ },
365
+ },
360
366
  server: {
361
367
  host: true,
362
368
  port: 3000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bdpa-react-scaffold",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Scaffold a React + Tailwind UI library demo via Vite.",
5
5
  "bin": {
6
6
  "create-bdpa-react-scaffold": "create-ui-lib.js"