Skip to content

Commit 84061c4

Browse files
committed
chore: bump version
1 parent dadb633 commit 84061c4

File tree

22 files changed

+672
-363
lines changed

22 files changed

+672
-363
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@weapp-tailwindcss/shared": patch
3+
"@weapp-tailwindcss/postcss": patch
4+
"weapp-style-injector": patch
5+
---
6+
7+
修复 TypeScript 严格模式下的类型错误:
8+
9+
- **@weapp-tailwindcss/shared**: 修复 `groupBy` 函数中的类型推断问题
10+
- **@weapp-tailwindcss/postcss**: 添加 `process.env.TARO_ENV` 类型声明,修复 `pipeline.ts``shared.ts` 中的 `exactOptionalPropertyTypes` 问题
11+
- **weapp-style-injector**: 修复 `uni-app.ts``taro.ts``vite.ts``webpack.ts` 及相关子模块中的可选属性类型问题

.dockerignore

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
1+
# Dependencies
12
node_modules
3+
**/node_modules/
4+
5+
# Build outputs
6+
dist
7+
**/dist/
8+
9+
# Version control
210
.git
311
.gitignore
12+
.github
13+
14+
# Documentation
415
*.md
5-
dist
6-
**/node_modules/
16+
README*
17+
18+
# Testing
19+
coverage
20+
**/coverage/
21+
**/*.test.ts
22+
**/*.test.js
23+
**/*.spec.ts
24+
**/*.spec.js
25+
26+
# Build caches
27+
.turbo
28+
**/.turbo/
29+
.vitepress/cache
30+
**/.vitepress/cache
31+
32+
# Development
33+
.vscode
34+
.idea
35+
*.log
36+
.DS_Store
37+
38+
# CI/CD
39+
.github/workflows
40+
41+
# Environment
42+
.env
43+
.env.*
44+
!.env.example

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# registry=http://registry.npmmirror.com/
2-
registry=http://registry.npmjs.org/
2+
registry=https://registry.npmjs.org/
33
msvs_version=2017
44
git-checks=false
55
package-manager-strict=false

demo/rax-app/.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
registry=http://registry.npmmirror.com/
1+
# registry=http://registry.npmmirror.com/
22
msvs_version=2017

demo/rax-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@weapp-tailwindcss/merge-v3": "workspace:*",
4646
"@weapp-tailwindcss/variants-v3": "workspace:*",
4747
"autoprefixer": "catalog:autoprefixer10",
48+
"build-plugin-app-core": "^2.1.4",
4849
"cross-env": "catalog:crossEnv",
4950
"eslint": "^9.39.2",
5051
"postcss": "catalog:postcss85",

monorepo.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineMonorepoConfig({
88
},
99
clean: {
1010
autoConfirm: false,
11-
ignorePackages: ['@icebreakers/website'],
11+
includePrivate: true,
1212
},
1313
sync: {
1414
concurrency: 4,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.0.0",
55
"private": true,
6-
"packageManager": "[email protected].1",
6+
"packageManager": "[email protected].2",
77
"description": "把tailwindcss jit引擎,带给小程序开发者们! bring tailwindcss jit engine to miniprogram developers!",
88
"author": "ice breaker <[email protected]>",
99
"license": "MIT",
@@ -125,7 +125,7 @@
125125
"@eslint/config-inspector": "^1.4.2",
126126
"@icebreakers/commitlint-config": "^1.2.3",
127127
"@icebreakers/eslint-config": "^1.6.9",
128-
"@icebreakers/monorepo": "^3.1.12",
128+
"@icebreakers/monorepo": "^3.1.13",
129129
"@icebreakers/stylelint-config": "^1.2.4",
130130
"@swc/core": "^1.15.7",
131131
"@tailwindcss/postcss": "catalog:tailwindcss4",
@@ -246,11 +246,11 @@
246246
"traverse": "^0.6.11",
247247
"ts-morph": "^27.0.2",
248248
"tsd": "^0.33.0",
249-
"tsdown": "0.18.2",
249+
"tsdown": "0.18.3",
250250
"tslib": "^2.8.1",
251251
"tsup": "^8.5.1",
252252
"tsx": "^4.21.0",
253-
"turbo": "^2.7.1",
253+
"turbo": "^2.7.2",
254254
"type-fest": "^5.3.1",
255255
"typescript": "catalog:typescript59",
256256
"unbuild": "^3.6.1",

packages/postcss/src/global.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare namespace NodeJS {
2+
export interface ProcessEnv {
3+
TARO_ENV?: string
4+
}
5+
}

packages/postcss/src/pipeline.ts

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,18 +246,26 @@ export function createStylePipeline(options: IStyleHandlerOptions): StyleProcess
246246
size,
247247
stageIndex,
248248
stageSize: stageSizes.get(node.stage) ?? 0,
249-
previous: index > 0
250-
? {
251-
id: preparedNodes[index - 1].id,
252-
stage: preparedNodes[index - 1].stage,
253-
}
254-
: undefined,
255-
next: index < size - 1
256-
? {
257-
id: preparedNodes[index + 1].id,
258-
stage: preparedNodes[index + 1].stage,
259-
}
260-
: undefined,
249+
}
250+
251+
if (index > 0) {
252+
const prevNode = preparedNodes[index - 1]
253+
if (prevNode) {
254+
context.previous = {
255+
id: prevNode.id,
256+
stage: prevNode.stage,
257+
}
258+
}
259+
}
260+
261+
if (index < size - 1) {
262+
const nextNode = preparedNodes[index + 1]
263+
if (nextNode) {
264+
context.next = {
265+
id: nextNode.id,
266+
stage: nextNode.stage,
267+
}
268+
}
261269
}
262270

263271
stageIndices.set(node.stage, stageIndex + 1)

packages/postcss/src/shared.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ export function internalCssSelectorReplacer(
1515
},
1616
) {
1717
const { escapeMap } = options
18-
return escape(selectors, {
19-
map: escapeMap,
20-
})
18+
const escapeOptions: Record<string, unknown> = {}
19+
if (escapeMap !== undefined) {
20+
// eslint-disable-next-line dot-notation
21+
escapeOptions['map'] = escapeMap
22+
}
23+
return escape(selectors, escapeOptions)
2124
}
2225

2326
// composeIsPseudo 将字符串数组包装成 :is(...),保持选择器语义一致

0 commit comments

Comments
 (0)