Skip to content

Commit f1e412d

Browse files
committed
sync with next-devtools/ dir set up
1 parent 03e2864 commit f1e412d

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

packages/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
"storybook": "BROWSER=none storybook dev -p 6006",
9191
"build-storybook": "storybook build",
9292
"test-storybook": "test-storybook",
93-
"build-tw": "tailwindcss --input ./src/client/components/react-dev-overlay/tailwind.input.css --output ./src/client/components/react-dev-overlay/ui/styles/tailwind.output.css",
94-
"watch-tw": "pnpm build-tw --watch"
93+
"tw-build": "tailwindcss --input ./src/next-devtools/dev-overlay/tailwind.input.css --output ./src/next-devtools/dev-overlay/styles/tailwind.output.css",
94+
"tw-watch": "pnpm tw-build --watch=always"
9595
},
9696
"taskr": {
9797
"requires": [

packages/next/src/next-devtools/dev-overlay/styles/tailwind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tailwindCss from './tailwind.output.css?raw'
2-
import { css } from '../../utils/css'
2+
import { css } from '../utils/css'
33

44
export function Tailwind() {
55
return (

packages/next/src/next-devtools/tailwind.input.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/next/taskfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,9 +2948,11 @@ export async function check_error_codes(task, opts) {
29482948
export async function build_tailwind_styles(task, opts) {
29492949
// Generate the production build of tailwind css file.
29502950
const watchmode = opts.dev
2951-
const tailwindPromise = execa('pnpm', [watchmode ? 'watch-tw' : 'build-tw'], {
2952-
stdio: 'inherit',
2953-
})
2951+
const tailwindPromise = execa(
2952+
'pnpm',
2953+
['run', watchmode ? 'tw-watch' : 'tw-build'],
2954+
{ stdio: 'inherit' }
2955+
)
29542956
// In watch-mode the process never completes i.e. the Promise never resolves.
29552957
// But taskr needs to know that it can start watching the files for the task it has to manually restart.
29562958
if (!watchmode) {

0 commit comments

Comments
 (0)