@planet-matrix/mobius-mono 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +5 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @planet-matrix/mobius-mono
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b923100: Update oxc vscode extension settings.
|
|
8
|
+
|
|
9
|
+
将 `.vscode/settings.json` 中的 `oxc.path.oxfmt` 和 `oxc.path.oxlint` 移除。
|
|
10
|
+
|
|
11
|
+
- see: https://github.com/oxc-project/oxc/blob/main/editors/vscode/client/ConfigService.ts#L172
|
|
12
|
+
- see: https://github.com/oxc-project/oxc/commit/605dbf12ab64a52948742df8480aa341faa73256
|
|
13
|
+
- see: https://github.com/oxc-project/oxc/issues/17596
|
|
14
|
+
|
|
15
|
+
## 0.4.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- f9e53b6: Set `ssr.resolve.conditions` to make vitest correctly respect subpath imports.
|
|
20
|
+
|
|
3
21
|
## 0.4.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Mobius Mono 是一个用于规范项目的项目,由规范文本(Specificati
|
|
|
31
31
|
- 使用 Bun 作为包管理工具。
|
|
32
32
|
- 无论是源代码还是打包产物,都只支持 ES Modules。
|
|
33
33
|
- 本地发包时,npm token 写在操作者的全局 `.npmrc` 中,CI/CD 发包时,使用 [Trusted publishing](https://docs.npmjs.com/trusted-publishers)。
|
|
34
|
-
-
|
|
34
|
+
- 除敏感文件、临时文件、`node_modules` 外,其它所有文件均作为包的一部分进行发布。
|
|
35
35
|
|
|
36
36
|
- `package.json` 一定要设置 `name` 字段。
|
|
37
37
|
- `package.json` 一定要设置 `version` 字段。
|
|
@@ -46,7 +46,7 @@ Mobius Mono 是一个用于规范项目的项目,由规范文本(Specificati
|
|
|
46
46
|
- `package.json` 一定要设置 `bin` 字段,`bin` 字段的值一定要是对象。
|
|
47
47
|
- `package.json` 一定要设置 `man` 字段,`man` 字段的值一定要是数组。
|
|
48
48
|
- `package.json` 一定要设置 `type` 字段,该字段的值一定要是 `module`。
|
|
49
|
-
- `package.json` 一定要设置 `exports` 字段,`exports` 字段的值一定要是对象,该对象至少要包含 `.` 字段用于指定包的主要入口文件,且 `.` 字段的值一定要是包含且只包含 `import` 字段的对象(只支持 ES Modules),且 `import` 字段的值一定要是对象,该对象的字段包含且只包含 `@planet-matrix/mobius-mono`、`bun`、`types` 和 `default` 四个字段(顺序一定要与描述一致,虽然 Node.js
|
|
49
|
+
- `package.json` 一定要设置 `exports` 字段,`exports` 字段的值一定要是对象,该对象至少要包含 `.` 字段用于指定包的主要入口文件,且 `.` 字段的值一定要是包含且只包含 `import` 字段的对象(只支持 ES Modules),且 `import` 字段的值一定要是对象,该对象的字段包含且只包含 `@planet-matrix/mobius-mono`、`bun`、`types` 和 `default` 四个字段(顺序一定要与描述一致,虽然 Node.js [推荐](https://nodejs.org/api/packages.html#community-conditions-definitions)总是将 `types` 作为第一个 condition,但 Live TypeScript 追求直接指向 `.ts` 文件,因此将 `types` condition 后移)。示例如下:
|
|
50
50
|
```jsonc
|
|
51
51
|
{
|
|
52
52
|
// other fields of package.json omitted
|
|
@@ -141,18 +141,13 @@ Mobius Mono 是一个用于规范项目的项目,由规范文本(Specificati
|
|
|
141
141
|
|
|
142
142
|
## Tool
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```
|
|
145
147
|
|
|
146
148
|
## Todos
|
|
147
149
|
|
|
148
150
|
- [ ] 当 oxfmt 支持在 monorepo 中为不同的包添加不同的配置之后将其引入。
|
|
149
151
|
- [ ] 当 oxlint `extends` 字段支持指定包产物时,更新所有相关配置。
|
|
150
152
|
- [ ] `change publish` 支持 dry-run 参数。
|
|
151
|
-
- [ ] 待自动识别能力恢复之后,将 `.vscode/settings.json` 中的 `oxc.path.oxfmt` 和 `oxc.path.oxlint` 移除。
|
|
152
|
-
- see: https://github.com/oxc-project/oxc/blob/main/editors/vscode/client/ConfigService.ts#L172
|
|
153
|
-
- see: https://github.com/oxc-project/oxc/commit/605dbf12ab64a52948742df8480aa341faa73256
|
|
154
|
-
- see: https://github.com/oxc-project/oxc/issues/17596
|
|
155
153
|
- [ ] 规范稳定之后,将其固化为工具。
|
|
156
|
-
- [ ] vite does not respect conditions for subpath imports.
|
|
157
|
-
- see: https://medium.com/@vitaliypotapov/setting-up-subpath-import-aliases-in-a-typescript-project-3ee027b75f1d
|
|
158
|
-
- see: https://vite.dev/config/shared-options#resolve-conditions
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./internals/index";
|
|
1
|
+
export * from "./internals/index.ts";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planet-matrix/mobius-mono",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Mobius Mono 是一个用于规范项目的项目,由规范文本(Specification)、配套工具(Tool)组成。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mobius",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"homepage": "https://github.com/planet-matrix/mobius",
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/planet-matrix/mobius/issues",
|
|
12
|
-
"email": "kongxiangyan@
|
|
12
|
+
"email": "kongxiangyan@planetmatrix.tech"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": {
|
|
16
16
|
"name": "Kong Xiangyan",
|
|
17
|
-
"email": "kongxiangyan@
|
|
17
|
+
"email": "kongxiangyan@planetmatrix.tech",
|
|
18
18
|
"url": "https://github.com/kongxiangyan"
|
|
19
19
|
},
|
|
20
20
|
"contributors": [],
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./internals/index"
|
|
1
|
+
export * from "./internals/index.ts"
|