Skip to content

Commit 7e25ce6

Browse files
committed
chore(deps): upgrade
1 parent 4d20b9f commit 7e25ce6

File tree

85 files changed

+2720
-1046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2720
-1046
lines changed

.changeset/config.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { icebreaker } from '@icebreakers/eslint-config'
2+
3+
export default icebreaker()

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "tailwindcss-mangle",
33
"version": "2.2.2",
44
"private": true,
5+
"type": "module",
56
"workspaces": [
67
"apps/*",
78
"packages/*"
@@ -11,7 +12,7 @@
1112
"dev": "pnpm -r run dev",
1213
"test": "vitest run --coverage.enabled",
1314
"test:dev": "vitest --coverage.enabled",
14-
"lint": "pnpm run -r lint",
15+
"lint": "eslint packages/**/*ts --fix",
1516
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1617
"preinstall": "npx only-allow pnpm",
1718
"sync": "cnpm sync @tailwindcss-mangle/shared @tailwindcss-mangle/config tailwindcss-patch unplugin-tailwindcss-mangle @tailwindcss-mangle/core",
@@ -20,7 +21,8 @@
2021
},
2122
"devDependencies": {
2223
"@changesets/changelog-github": "^0.5.0",
23-
"@changesets/cli": "^2.27.2",
24+
"@changesets/cli": "^2.27.3",
25+
"@icebreakers/eslint-config": "^0.3.3",
2426
"@tailwindcss-mangle/core": "workspace:*",
2527
"@tailwindcss-mangle/shared": "workspace:*",
2628
"@tsconfig/recommended": "^1.0.6",
@@ -39,7 +41,7 @@
3941
"lodash-es": "^4.17.21",
4042
"only-allow": "^1.2.1",
4143
"prettier": "^3.2.5",
42-
"rollup": "^4.17.2",
44+
"rollup": "^4.18.0",
4345
"tailwindcss-patch": "workspace:*",
4446
"ts-node": "^10.9.2",
4547
"tslib": "^2.6.2",
@@ -52,5 +54,5 @@
5254
"engines": {
5355
"node": ">=18.0.0"
5456
},
55-
"packageManager": "[email protected].0"
57+
"packageManager": "[email protected].2"
5658
}

packages/config/build.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export default defineBuildConfig({
99
cjsBridge: true,
1010
dts: {
1111
// https://github.com/unjs/unbuild/issues/135
12-
respectExternal: false
13-
}
12+
respectExternal: false,
13+
},
1414
},
1515
alias: {
16-
'@': path.resolve(__dirname, './src')
16+
'@': path.resolve(__dirname, './src'),
1717
},
18-
declaration: true
18+
declaration: true,
1919
})

packages/config/src/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
22
import fs from 'node:fs/promises'
3-
import { loadConfig, createDefineConfig } from 'c12'
3+
import { createDefineConfig, loadConfig } from 'c12'
44
import dedent from 'dedent'
55
import type { UserConfig } from './types'
66
import { getDefaultUserConfig } from './defaults'
@@ -10,9 +10,9 @@ export function getConfig(cwd?: string) {
1010
return loadConfig<UserConfig>({
1111
name: configName,
1212
defaults: {
13-
...getDefaultUserConfig()
13+
...getDefaultUserConfig(),
1414
},
15-
cwd
15+
cwd,
1616
})
1717
}
1818

@@ -26,6 +26,6 @@ export function initConfig(cwd: string) {
2626
2727
export default defineConfig({})
2828
`,
29-
'utf8'
29+
'utf8',
3030
)
3131
}

packages/config/src/defaults.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { defaultMangleClassFilter } from '@tailwindcss-mangle/shared'
2-
import type { PatchUserConfig, UserConfig, MangleUserConfig } from './types'
2+
import type { MangleUserConfig, PatchUserConfig, UserConfig } from './types'
33

44
export function getDefaultPatchConfig(): PatchUserConfig {
55
return {
66
output: {
77
filename: '.tw-patch/tw-class-list.json',
88
removeUniversalSelector: true,
9-
loose: true
9+
loose: true,
1010
},
11-
tailwindcss: {}
11+
tailwindcss: {},
1212
}
1313
}
1414

@@ -22,15 +22,15 @@ export function getDefaultMangleUserConfig(): MangleUserConfig {
2222
classMapOutput: {
2323
enable: false,
2424
filename: '.tw-patch/tw-map-list.json',
25-
loose: true
25+
loose: true,
2626
},
27-
preserveFunction: []
27+
preserveFunction: [],
2828
}
2929
}
3030

3131
export function getDefaultUserConfig(): UserConfig {
3232
return {
3333
patch: getDefaultPatchConfig(),
34-
mangle: getDefaultMangleUserConfig()
34+
mangle: getDefaultMangleUserConfig(),
3535
}
3636
}

packages/config/test/fixtures/config/1.change-options/tailwindcss-mangle.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export default defineConfig({
55
output: {
66
filename: 'xxx/yyy/zzz.json',
77
loose: false,
8-
removeUniversalSelector: false
8+
removeUniversalSelector: false,
99
},
1010
tailwindcss: {
11-
cwd: 'aaa/bbb/cc'
12-
}
13-
}
11+
cwd: 'aaa/bbb/cc',
12+
},
13+
},
1414
})

0 commit comments

Comments
 (0)