Skip to content

Commit 7f08d3c

Browse files
committed
chore: build cleanup for a clean install and build
1 parent aa8e909 commit 7f08d3c

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

apps/browser-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "rm -rf dist ; tsc -b && vite build",
9-
"clean": "rm -rf node_modules; rm -rf dist",
9+
"clean": "rm -rf node_modules; rm tsconfig.tsbuildinfo; rm -rf dist",
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {

apps/browser-example/src/styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Import all of Bootstrap's CSS
2-
@import "bootstrap/scss/bootstrap";
2+
@use "bootstrap/scss/bootstrap";

apps/browser-example/vite.config.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from "vite"
2+
import react from "@vitejs/plugin-react"
33

44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
css: {
8+
// https://vite.dev/config/shared-options.html#css-preprocessoroptions
9+
preprocessorOptions: {
10+
scss: {
11+
// https://sass-lang.com/documentation/js-api/interfaces/options/#quietDeps
12+
quietDeps: true,
13+
},
14+
},
15+
},
716
})

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
],
1010
"type": "module",
1111
"scripts": {
12-
"dev": "cd apps/react-example && npm run dev",
13-
"build": "npm run build --workspaces",
12+
"dev": "cd apps/browser-example && npm run dev",
13+
"build": "tsc --build",
1414
"watch": "tsc --build --watch",
1515
"clean": "rm -rf node_modules && npm run clean --workspaces"
1616
},

packages/browser/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
}
2020
},
2121
"scripts": {
22-
"build": "tsc --build",
23-
"clean": "rm -rf dist; rm -rf node_modules"
22+
"build": "rm -rf dist; tsc --build",
23+
"clean": "rm -rf dist; rm tsconfig.tsbuildinfo; rm -rf node_modules"
2424
},
2525
"keywords": [],
2626
"author": "Scott Willeke <scott@willeke.com> (https://scott.willeke.com)",

0 commit comments

Comments
 (0)