Skip to content

Commit 79ea57d

Browse files
committed
chore: revert to unbuild
1 parent c1c7c97 commit 79ea57d

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"node": ">=18.0.0"
1313
},
1414
"scripts": {
15-
"build": "turbo build",
16-
"dev": "turbo dev",
15+
"build": "pnpm run -r build",
16+
"dev": "pnpm -r run dev",
1717
"test": "vitest run --coverage.enabled",
1818
"test:dev": "vitest --coverage.enabled",
1919
"lint": "eslint packages/**/*.ts --fix",

packages/config/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
".": {
2323
"types": "./dist/index.d.ts",
2424
"import": "./dist/index.mjs",
25-
"require": "./dist/index.js"
25+
"require": "./dist/index.cjs"
2626
}
2727
},
28-
"main": "./dist/index.js",
28+
"main": "./dist/index.cjs",
2929
"module": "./dist/index.mjs",
3030
"types": "./dist/index.d.ts",
3131
"typesVersions": {
@@ -40,8 +40,8 @@
4040
"dist"
4141
],
4242
"scripts": {
43-
"dev": "tsup --watch --sourcemap",
44-
"build": "tsup",
43+
"dev": "unbuild --sourcemap",
44+
"build": "unbuild",
4545
"test": "vitest run --coverage.enabled",
4646
"test:dev": "vitest"
4747
},

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
".": {
2323
"types": "./dist/index.d.ts",
2424
"import": "./dist/index.mjs",
25-
"require": "./dist/index.js"
25+
"require": "./dist/index.cjs"
2626
}
2727
},
28-
"main": "./dist/index.js",
28+
"main": "./dist/index.cjs",
2929
"module": "./dist/index.mjs",
3030
"types": "./dist/index.d.ts",
3131
"typesVersions": {
@@ -40,8 +40,8 @@
4040
"dist"
4141
],
4242
"scripts": {
43-
"dev": "tsup --watch --sourcemap",
44-
"build": "tsup",
43+
"dev": "unbuild --sourcemap",
44+
"build": "unbuild",
4545
"test": "vitest run --coverage.enabled",
4646
"test:dev": "vitest",
4747
"coverage": "vitest run --coverage"

packages/shared/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
".": {
2222
"types": "./dist/index.d.ts",
2323
"import": "./dist/index.mjs",
24-
"require": "./dist/index.js"
24+
"require": "./dist/index.cjs"
2525
}
2626
},
27-
"main": "./dist/index.js",
27+
"main": "./dist/index.cjs",
2828
"module": "./dist/index.mjs",
2929
"types": "./dist/index.d.ts",
3030
"typesVersions": {
@@ -39,8 +39,8 @@
3939
"dist"
4040
],
4141
"scripts": {
42-
"dev": "tsup --watch --sourcemap",
43-
"build": "tsup",
42+
"dev": "unbuild --sourcemap",
43+
"build": "unbuild",
4444
"test": "vitest run --coverage.enabled",
4545
"test:dev": "vitest"
4646
},

packages/tailwindcss-patch/bin/tw-patch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const fs = require('node:fs')
33
const path = require('node:path')
44

5-
const cliPath = path.resolve(__dirname, '../dist/cli.js')
5+
const cliPath = path.resolve(__dirname, '../dist/cli.cjs')
66
if (fs.existsSync(cliPath)) {
77
require(cliPath)
88
}

packages/tailwindcss-patch/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"extract",
1919
"class"
2020
],
21-
"main": "./dist/index.js",
21+
"main": "./dist/index.cjs",
2222
"module": "./dist/index.mjs",
2323
"types": "./dist/index.d.ts",
2424
"bin": {
@@ -30,11 +30,11 @@
3030
"dist"
3131
],
3232
"scripts": {
33-
"dev": "tsup --watch --sourcemap",
34-
"build": "tsup",
33+
"dev": "unbuild --sourcemap",
34+
"build": "unbuild",
3535
"test": "vitest run --coverage.enabled",
3636
"test:dev": "vitest",
37-
"patch": "node bin/tw-patch.js install"
37+
"patch": "node bin/tw-patch.cjs install"
3838
},
3939
"publishConfig": {
4040
"access": "public",

packages/unplugin-tailwindcss-mangle/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,41 @@
2121
".": {
2222
"types": "./dist/index.d.ts",
2323
"import": "./dist/index.mjs",
24-
"require": "./dist/index.js"
24+
"require": "./dist/index.cjs"
2525
},
2626
"./vite": {
2727
"types": "./dist/vite.d.ts",
2828
"import": "./dist/vite.mjs",
29-
"require": "./dist/vite.js"
29+
"require": "./dist/vite.cjs"
3030
},
3131
"./webpack": {
3232
"types": "./dist/webpack.d.ts",
3333
"import": "./dist/webpack.mjs",
34-
"require": "./dist/webpack.js"
34+
"require": "./dist/webpack.cjs"
3535
},
3636
"./rollup": {
3737
"types": "./dist/rollup.d.ts",
3838
"import": "./dist/rollup.mjs",
39-
"require": "./dist/rollup.js"
39+
"require": "./dist/rollup.cjs"
4040
},
4141
"./esbuild": {
4242
"types": "./dist/esbuild.d.ts",
4343
"import": "./dist/esbuild.mjs",
44-
"require": "./dist/esbuild.js"
44+
"require": "./dist/esbuild.cjs"
4545
},
4646
"./nuxt": {
4747
"types": "./dist/nuxt.d.ts",
4848
"import": "./dist/nuxt.mjs",
49-
"require": "./dist/nuxt.js"
49+
"require": "./dist/nuxt.cjs"
5050
},
5151
"./utils": {
5252
"types": "./dist/utils.d.ts",
5353
"import": "./dist/utils.mjs",
54-
"require": "./dist/utils.js"
54+
"require": "./dist/utils.cjs"
5555
},
5656
"./*": "./*"
5757
},
58-
"main": "./dist/index.js",
58+
"main": "./dist/index.cjs",
5959
"module": "./dist/index.mjs",
6060
"types": "./dist/index.d.ts",
6161
"typesVersions": {
@@ -70,8 +70,8 @@
7070
"dist"
7171
],
7272
"scripts": {
73-
"dev": "tsup --watch --sourcemap",
74-
"build": "tsup",
73+
"dev": "unbuild --sourcemap",
74+
"build": "unbuild",
7575
"test": "vitest run --coverage.enabled",
7676
"test:dev": "vitest"
7777
},

0 commit comments

Comments
 (0)