ts-builds 2.2.0 → 2.2.1
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/package.json +5 -5
- package/prettier-config.cjs +18 -0
- package/prettier-config.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-builds",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Shared TypeScript configuration files for library templates. Provides standardized ESLint, Prettier, Vitest, TypeScript, and build configs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/jordanburke/ts-builds.git"
|
|
23
23
|
},
|
|
24
|
-
"main": "./prettier-config.
|
|
24
|
+
"main": "./prettier-config.cjs",
|
|
25
25
|
"bin": {
|
|
26
26
|
"ts-builds": "dist/cli.js"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
|
-
".": "./prettier-config.
|
|
30
|
-
"./prettier": "./prettier-config.
|
|
29
|
+
".": "./prettier-config.cjs",
|
|
30
|
+
"./prettier": "./prettier-config.cjs",
|
|
31
31
|
"./prettier-ignore": "./.prettierignore",
|
|
32
32
|
"./eslint": "./eslint.config.base.mjs",
|
|
33
33
|
"./vitest": "./dist/vitest.config.base.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
|
-
"prettier-config.
|
|
41
|
+
"prettier-config.cjs",
|
|
42
42
|
".prettierignore",
|
|
43
43
|
"eslint.config.base.mjs",
|
|
44
44
|
"dist",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shareable Prettier configuration for TypeScript library templates
|
|
3
|
+
*
|
|
4
|
+
* Uses CommonJS format for compatibility with prettier's shareable config feature.
|
|
5
|
+
* When using "prettier": "ts-builds/prettier" in package.json, prettier uses
|
|
6
|
+
* require() internally which doesn't handle ESM default exports properly.
|
|
7
|
+
*
|
|
8
|
+
* @see https://prettier.io/docs/sharing-configurations
|
|
9
|
+
* @see https://github.com/prettier/prettier/issues/15388 - ESM support tracking
|
|
10
|
+
*/
|
|
11
|
+
module.exports = {
|
|
12
|
+
semi: false,
|
|
13
|
+
trailingComma: "all",
|
|
14
|
+
singleQuote: false,
|
|
15
|
+
printWidth: 120,
|
|
16
|
+
tabWidth: 2,
|
|
17
|
+
endOfLine: "auto",
|
|
18
|
+
}
|
package/prettier-config.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shareable Prettier configuration for TypeScript library templates
|
|
3
|
-
* @see https://prettier.io/docs/sharing-configurations
|
|
4
|
-
*/
|
|
5
|
-
export default {
|
|
6
|
-
semi: false,
|
|
7
|
-
trailingComma: "all",
|
|
8
|
-
singleQuote: false,
|
|
9
|
-
printWidth: 120,
|
|
10
|
-
tabWidth: 2,
|
|
11
|
-
endOfLine: "auto",
|
|
12
|
-
}
|