Skip to content

Commit 9dff5db

Browse files
committed
chore: switch to pre alpha release
1 parent 93558fa commit 9dff5db

File tree

19 files changed

+1757
-1482
lines changed

19 files changed

+1757
-1482
lines changed

.changeset/pre.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"astro-app": "1.0.0",
6+
"next-app": "0.1.0",
7+
"next-app-router": "0.1.0",
8+
"vite-template-solid": "0.0.0",
9+
"vite-lit": "0.0.0",
10+
"vite-react": "0.0.0",
11+
"vite-svelte": "0.0.0",
12+
"vite-vanilla": "0.0.0",
13+
"vite-vue": "0.0.0",
14+
"webpack5-vue3": "0.1.0",
15+
"@tailwindcss-mangle/config": "3.0.0",
16+
"@tailwindcss-mangle/core": "3.0.0",
17+
"@tailwindcss-mangle/shared": "3.0.0",
18+
"tailwindcss-patch": "4.0.0",
19+
"unplugin-tailwindcss-mangle": "3.0.1"
20+
},
21+
"changesets": []
22+
}

package.json

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"apps/*",
88
"packages/*"
99
],
10-
"packageManager": "pnpm@9.11.0",
10+
"packageManager": "pnpm@9.12.2",
1111
"engines": {
1212
"node": ">=18.0.0"
1313
},
@@ -21,7 +21,14 @@
2121
"preinstall": "npx only-allow pnpm",
2222
"sync": "cnpm sync @tailwindcss-mangle/shared @tailwindcss-mangle/config tailwindcss-patch unplugin-tailwindcss-mangle @tailwindcss-mangle/core",
2323
"publish-packages": "pnpm run test && changeset version && changeset publish",
24+
"-------": "-----------",
2425
"release": "changeset",
26+
"pr": "changeset pre enter alpha",
27+
"pr:beta": "changeset pre enter beta",
28+
"pr:rc": "changeset pre enter rc",
29+
"pr:exit": "changeset pre exit",
30+
"cv": "changeset version ",
31+
"--------": "----------------",
2532
"_postinstall": "tw-patch install",
2633
"script:init": "monorepo init",
2734
"script:sync": "monorepo sync",
@@ -30,15 +37,15 @@
3037
},
3138
"devDependencies": {
3239
"@changesets/changelog-github": "^0.5.0",
33-
"@changesets/cli": "^2.27.8",
40+
"@changesets/cli": "^2.27.9",
3441
"@commitlint/cli": "^19.5.0",
3542
"@commitlint/config-conventional": "^19.5.0",
3643
"@commitlint/prompt-cli": "^19.5.0",
3744
"@commitlint/types": "^19.5.0",
38-
"@icebreakers/eslint-config": "^0.5.2",
39-
"@icebreakers/monorepo": "^0.5.0",
40-
"@icebreakers/stylelint-config": "^0.0.3",
41-
"@rollup/pluginutils": "^5.1.0",
45+
"@icebreakers/eslint-config": "^0.6.1",
46+
"@icebreakers/monorepo": "^0.6.11",
47+
"@icebreakers/stylelint-config": "^0.1.2",
48+
"@rollup/pluginutils": "^5.1.2",
4249
"@tailwindcss-mangle/core": "workspace:*",
4350
"@tailwindcss-mangle/shared": "workspace:*",
4451
"@tsconfig/recommended": "^1.0.7",
@@ -51,29 +58,29 @@
5158
"@types/html-minifier-terser": "^7.0.2",
5259
"@types/klaw": "^3.0.6",
5360
"@types/lint-staged": "^13.3.0",
54-
"@types/lodash": "^4.17.7",
61+
"@types/lodash": "^4.17.12",
5562
"@types/lodash-es": "^4.17.12",
5663
"@types/micromatch": "^4.0.9",
57-
"@types/node": "^22.5.5",
64+
"@types/node": "^22.7.7",
5865
"@types/resolve": "^1.20.6",
5966
"@types/semver": "^7.5.8",
6067
"@types/set-value": "^4.0.3",
61-
"@vitest/coverage-v8": "~2.0.5",
62-
"astro": "^4.15.8",
68+
"@vitest/coverage-v8": "~2.1.3",
69+
"astro": "^4.16.7",
6370
"ci-info": "^4.0.0",
6471
"comment-json": "^4.2.5",
6572
"cross-env": "^7.0.3",
6673
"css-loader": "^7.1.2",
6774
"dedent": "^1.5.3",
6875
"defu": "^6.1.4",
69-
"del": "^7.1.0",
70-
"eslint": "^9.11.0",
71-
"execa": "^9.4.0",
76+
"del": "^8.0.0",
77+
"eslint": "^9.13.0",
78+
"execa": "^9.4.1",
7279
"fast-glob": "^3.3.2",
7380
"fs-extra": "^11.2.0",
7481
"get-value": "^3.0.1",
7582
"html-minifier-terser": "^7.2.0",
76-
"html-webpack-plugin": "^5.6.0",
83+
"html-webpack-plugin": "^5.6.2",
7784
"husky": "^9.1.6",
7885
"klaw": "^4.1.0",
7986
"lint-staged": "^15.2.10",
@@ -85,30 +92,30 @@
8592
"normalize-newline": "^4.1.0",
8693
"only-allow": "^1.2.1",
8794
"pathe": "^1.1.2",
88-
"pkg-types": "^1.2.0",
95+
"pkg-types": "^1.2.1",
8996
"postcss": "^8.4.47",
9097
"postcss-loader": "^8.1.1",
9198
"postcss7": "npm:postcss@7",
9299
"prettier": "^3.3.3",
93100
"rimraf": "^6.0.1",
94-
"rollup": "^4.21.3",
101+
"rollup": "^4.24.0",
95102
"set-value": "^4.1.0",
96-
"tailwindcss": "^3.4.12",
103+
"tailwindcss": "^3.4.14",
97104
"tailwindcss-patch": "workspace:*",
98105
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17",
99-
"tslib": "^2.7.0",
106+
"tslib": "^2.8.0",
100107
"tsup": "^8.3.0",
101108
"tsx": "^4.19.1",
102-
"turbo": "^2.1.2",
103-
"typescript": "^5.6.2",
109+
"turbo": "^2.2.1",
110+
"typescript": "^5.6.3",
104111
"unbuild": "^2.0.0",
105112
"unplugin": "^1.14.1",
106113
"unplugin-tailwindcss-mangle": "workspace:*",
107-
"vite": "^5.4.7",
114+
"vite": "^5.4.9",
108115
"vite-tsconfig-paths": "^5.0.1",
109-
"vitest": "~2.0.5",
110-
"webpack": "^5.94.0",
116+
"vitest": "~2.1.3",
117+
"webpack": "^5.95.0",
111118
"webpack-build-utils": "^0.0.7",
112-
"yaml": "^2.5.1"
119+
"yaml": "^2.6.0"
113120
}
114121
}

packages/config/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
},
5252
"dependencies": {
5353
"@tailwindcss-mangle/shared": "workspace:^",
54-
"c12": "^1.11.2",
55-
"is-css-request": "^1.0.1"
54+
"c12": "^2.0.1",
55+
"fs-extra": "^11.2.0",
56+
"is-css-request": "^1.0.1",
57+
"pathe": "^1.1.2"
5658
}
5759
}

packages/config/src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { UserConfig } from './types'
2-
import fs from 'node:fs/promises'
3-
import path from 'node:path'
42
import { createDefineConfig, loadConfig } from 'c12'
3+
import fs from 'fs-extra'
4+
import path from 'pathe'
55
import { configName } from './constants'
66
import { getDefaultUserConfig } from './defaults'
77

@@ -18,7 +18,7 @@ export function getConfig(cwd?: string) {
1818
export const defineConfig = createDefineConfig<UserConfig>()
1919

2020
export function initConfig(cwd: string) {
21-
return fs.writeFile(
21+
return fs.outputFile(
2222
path.resolve(cwd, `${configName}.config.ts`),
2323
`import { defineConfig } from 'tailwindcss-patch'
2424

packages/core/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@
5252
},
5353
"dependencies": {
5454
"@ast-core/escape": "^1.0.1",
55-
"@babel/parser": "^7.25.6",
56-
"@babel/traverse": "^7.25.6",
57-
"@babel/types": "^7.25.6",
55+
"@babel/parser": "^7.25.8",
56+
"@babel/traverse": "^7.25.7",
57+
"@babel/types": "^7.25.8",
5858
"@tailwindcss-mangle/config": "workspace:^",
5959
"@tailwindcss-mangle/shared": "workspace:^",
6060
"fast-sort": "^3.4.1",
61+
"fs-extra": "^11.2.0",
6162
"htmlparser2": "9.1.0",
62-
"magic-string": "^0.30.11",
63+
"magic-string": "^0.30.12",
64+
"pathe": "^1.1.2",
6365
"postcss": "^8.4.47",
6466
"postcss-selector-parser": "^6.1.2"
6567
}

packages/core/src/css/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function cssHandler(rawSource: string, options: ICssHandlerOptions)
1616
map,
1717
}
1818
}
19-
catch (error) {
19+
catch (_error) {
2020
return {
2121
code: rawSource,
2222
}

packages/core/src/css/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function isVueScoped(s: parser.ClassName): boolean {
2121
}
2222

2323
export const transformSelectorPostcssPlugin: PluginCreator<ICssHandlerOptions> = function (options) {
24-
const { ignoreVueScoped, ctx, id } = defu(options, {
24+
const { ignoreVueScoped, ctx } = defu(options, {
2525
ignoreVueScoped: true,
2626
})
2727

packages/core/src/ctx/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { ClassMapOutputItem, MangleUserConfig } from '@tailwindcss-mangle/config'
2-
import fs from 'node:fs'
3-
import { dirname, isAbsolute, resolve } from 'node:path'
42
import process from 'node:process'
53
import { defaultMangleClassFilter, escapeStringRegexp } from '@/utils'
64
import { getConfig } from '@tailwindcss-mangle/config'
75
import { ClassGenerator } from '@tailwindcss-mangle/shared'
86
import { defu } from 'defu'
97
import { sort } from 'fast-sort'
8+
import fs from 'fs-extra'
9+
import { dirname, isAbsolute, resolve } from 'pathe'
1010

1111
interface InitConfigOptions {
1212
cwd?: string

packages/shared/src/classGenerator.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { IClassGenerator, IClassGeneratorContextItem, IClassGeneratorOption
22

33
import { acceptChars, regExpTest, stripEscapeSequence } from './utils'
44

5-
class ClassGenerator implements IClassGenerator {
5+
export class ClassGenerator implements IClassGenerator {
66
public newClassMap: Record<string, IClassGeneratorContextItem>
77
public newClassSize: number
88
public context: Record<string, any>
@@ -101,5 +101,3 @@ class ClassGenerator implements IClassGenerator {
101101
return newClass
102102
}
103103
}
104-
105-
export default ClassGenerator

packages/shared/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
export { default as ClassGenerator } from './classGenerator'
2-
1+
export * from './classGenerator'
32
export * from './regex'
43
export * from './split'
54
export * from './types'

0 commit comments

Comments
 (0)