@abinnovision/prettier-config 2.0.0 → 2.1.0
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 +7 -0
- package/dist/bin/{sync-editorconfig.js → sync-editorconfig.cjs} +3 -3
- package/dist/index.js +4 -3
- package/package.json +10 -17
- package/dist/index.d.mts +0 -5
- package/dist/index.mjs +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.0.0...prettier-config-v2.1.0) (2024-08-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* migrate to esm ([#278](https://github.com/abinnovision/js-commons/issues/278)) ([fed850d](https://github.com/abinnovision/js-commons/commit/fed850d979f7ba83fae75adadcfd0024f2acd242))
|
|
9
|
+
|
|
3
10
|
## [2.0.0](https://github.com/abinnovision/js-commons/compare/prettier-config-v1.1.0...prettier-config-v2.0.0) (2023-11-03)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
|
|
26
26
|
// src/bin/sync-editorconfig.ts
|
|
27
|
-
var fs = __toESM(require("fs/promises"));
|
|
28
|
-
var path = __toESM(require("path"));
|
|
29
|
-
var process = __toESM(require("process"));
|
|
27
|
+
var fs = __toESM(require("fs/promises"), 1);
|
|
28
|
+
var path = __toESM(require("path"), 1);
|
|
29
|
+
var process = __toESM(require("process"), 1);
|
|
30
30
|
var DISABLE_ENV_VAR = "DISABLE_SYNC_EDITORCONFIG";
|
|
31
31
|
(async function() {
|
|
32
32
|
if ([true, "true"].includes(process.env[DISABLE_ENV_VAR] ?? false)) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/prettier-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"repository": {
|
|
5
6
|
"url": "https://github.com/abinnovision/js-commons"
|
|
6
7
|
},
|
|
@@ -10,25 +11,17 @@
|
|
|
10
11
|
"email": "info@abinnovision.com",
|
|
11
12
|
"url": "https://abinnovision.com/"
|
|
12
13
|
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"import": "./dist/index.mjs",
|
|
16
|
-
"require": "./dist/index.js",
|
|
17
|
-
"types": "./dist/index.d.ts"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
14
|
"main": "./dist/index.js",
|
|
21
|
-
"module": "./dist/index.mjs",
|
|
22
15
|
"types": "./dist/index.d.ts",
|
|
23
16
|
"bin": {
|
|
24
|
-
"sync-editorconfig": "./dist/bin/sync-editorconfig.
|
|
17
|
+
"sync-editorconfig": "./dist/bin/sync-editorconfig.cjs"
|
|
25
18
|
},
|
|
26
19
|
"files": [
|
|
27
20
|
"dist/",
|
|
28
21
|
"assets/"
|
|
29
22
|
],
|
|
30
23
|
"scripts": {
|
|
31
|
-
"build": "tsup src/index.ts --dts --format esm
|
|
24
|
+
"build": "tsup src/index.ts --dts --format esm --clean && tsup src/bin/* --format cjs --clean -d dist/bin",
|
|
32
25
|
"format:check": "prettier --check 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
|
|
33
26
|
"format:fix": "prettier --write 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
|
|
34
27
|
"lint:check": "eslint 'src/**/*.{ts,js}'",
|
|
@@ -45,13 +38,13 @@
|
|
|
45
38
|
},
|
|
46
39
|
"prettier": "./dist/index.js",
|
|
47
40
|
"devDependencies": {
|
|
48
|
-
"@types/node": "^20.
|
|
41
|
+
"@types/node": "^20.11.30",
|
|
49
42
|
"@types/prettier": "^3.0.0",
|
|
50
|
-
"eslint": "^8.
|
|
51
|
-
"globals": "^
|
|
52
|
-
"prettier": "^3.
|
|
53
|
-
"tsup": "^
|
|
54
|
-
"typescript": "^5.
|
|
43
|
+
"eslint": "^9.8.0",
|
|
44
|
+
"globals": "^15.9.0",
|
|
45
|
+
"prettier": "^3.3.3",
|
|
46
|
+
"tsup": "^8.2.4",
|
|
47
|
+
"typescript": "^5.5.4"
|
|
55
48
|
},
|
|
56
49
|
"peerDependencies": {
|
|
57
50
|
"prettier": "^2.4.0 || ^3.0.0"
|
package/dist/index.d.mts
DELETED
package/dist/index.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// src/index.ts
|
|
7
|
-
var require_src = __commonJS({
|
|
8
|
-
"src/index.ts"(exports, module) {
|
|
9
|
-
var config = {
|
|
10
|
-
printWidth: 80,
|
|
11
|
-
useTabs: true,
|
|
12
|
-
tabWidth: 2,
|
|
13
|
-
semi: true,
|
|
14
|
-
trailingComma: "es5",
|
|
15
|
-
bracketSpacing: true,
|
|
16
|
-
arrowParens: "always",
|
|
17
|
-
endOfLine: "lf"
|
|
18
|
-
};
|
|
19
|
-
module.exports = config;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export default require_src();
|