sql-format-plus 0.0.1 → 0.0.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ pnpm run build
|
|
|
125
125
|
- `src/sql-format-plus/core`: tokenizer, formatter, indentation, inline-block, and params logic
|
|
126
126
|
- `src/sql-format-plus/languages`: dialect-specific formatter configuration
|
|
127
127
|
- `src/main.ts`: local demo entry
|
|
128
|
-
- `rollup.config.
|
|
128
|
+
- `rollup.config.cjs`: Rollup build for library bundles and bundled declarations
|
|
129
129
|
- `vite.config.mts`: Vite config for the demo app
|
|
130
130
|
- `docs`: VitePress documentation
|
|
131
131
|
|
package/README.zh-CN.md
CHANGED
|
@@ -125,7 +125,7 @@ pnpm run build
|
|
|
125
125
|
- `src/sql-format-plus/core`:分词、格式化、缩进、内联块和参数替换逻辑
|
|
126
126
|
- `src/sql-format-plus/languages`:不同 SQL 方言的 formatter 配置
|
|
127
127
|
- `src/main.ts`:本地 demo 入口
|
|
128
|
-
- `rollup.config.
|
|
128
|
+
- `rollup.config.cjs`:库构建和类型打包配置
|
|
129
129
|
- `vite.config.mts`:demo 开发配置
|
|
130
130
|
- `docs`:VitePress 文档
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sql-format-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Formats whitespaces in a SQL query to make it more readable.",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/sql-format-plus.es.js",
|
|
6
7
|
"module": "dist/sql-format-plus.es.js",
|
|
7
8
|
"typings": "./types/sql-format-plus.d.ts",
|
|
8
9
|
"files": [
|
|
@@ -16,12 +17,12 @@
|
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./types/sql-format-plus.d.ts",
|
|
18
19
|
"import": "./dist/sql-format-plus.es.js",
|
|
19
|
-
"default": "./dist/sql-format-plus.
|
|
20
|
+
"default": "./dist/sql-format-plus.es.js"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"dev": "vite",
|
|
24
|
-
"build": "rollup -c",
|
|
25
|
+
"build": "rollup -c rollup.config.cjs",
|
|
25
26
|
"check": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
26
27
|
"test": "vitest run",
|
|
27
28
|
"docs:dev": "vitepress dev docs",
|