Skip to content

Commit 476f522

Browse files
committed
chore: format with prettier-config-atomic
1 parent 5bc0cc5 commit 476f522

3 files changed

Lines changed: 31 additions & 31 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ The builder function:
5656

5757
```ts
5858
/**
59-
Get the terser options for the given environment.
60-
61-
@param NODE_ENV - The Node environment (defaults to "production").
62-
@param BABEL_ENV - The Babel environment (defaults to NODE_ENV).
63-
@param unsafeCompress - Whether to use unsafe compression options (defaults to false).
64-
*/
59+
* Get the terser options for the given environment.
60+
*
61+
* @param NODE_ENV - The Node environment (defaults to "production").
62+
* @param BABEL_ENV - The Babel environment (defaults to NODE_ENV).
63+
* @param unsafeCompress - Whether to use unsafe compression options (defaults to false).
64+
*/
6565
export function buildTerserOptions(
6666
NODE_ENV: string = "production",
6767
BABEL_ENV: string | undefined = undefined,

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
{
22
"name": "terser-config-atomic",
3-
"main": "dist/terserrc.js",
43
"version": "0.1.1",
4+
"description": "The Terser configuration used in atom-community",
5+
"repository": "https://github.com/atom-community/terser-config-atomic",
6+
"license": "MIT",
7+
"author": "Amin Yahyaabadi",
8+
"main": "dist/terserrc.js",
59
"files": [
610
"src",
711
"dist"
812
],
9-
"author": "Amin Yahyaabadi",
10-
"description": "The Terser configuration used in atom-community",
11-
"keywords": [
12-
"terser",
13-
"minify",
14-
"preset",
15-
"config"
16-
],
17-
"repository": "https://github.com/atom-community/terser-config-atomic",
18-
"license": "MIT",
1913
"scripts": {
2014
"build": "tsc -p tsconfig.build.json",
21-
"prepublishOnly": "npm run build",
15+
"bump": "ncu -u",
2216
"format": "prettier --write .",
23-
"test.format": "prettier . --check",
2417
"lint": "eslint . --fix",
25-
"test.lint": "eslint .",
26-
"bump": "ncu -u",
27-
"test": "jest"
18+
"prepublishOnly": "npm run build",
19+
"test": "jest",
20+
"test.format": "prettier . --check",
21+
"test.lint": "eslint ."
2822
},
29-
"atomTestRunner": "./test/runner",
23+
"prettier": "prettier-config-atomic",
3024
"devDependencies": {
3125
"@swc/jest": "^0.2.29",
3226
"@types/jest": "^29.5.4",
@@ -38,5 +32,11 @@
3832
"prettier-config-atomic": "^3.1.0",
3933
"ts-node": "^10.9.1",
4034
"typescript": "^5.2.2"
41-
}
42-
}
35+
},
36+
"keywords": [
37+
"terser",
38+
"minify",
39+
"preset",
40+
"config"
41+
]
42+
}

src/builder.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
Get the terser options for the given environment.
3-
4-
@param NODE_ENV - The Node environment (defaults to "production").
5-
@param BABEL_ENV - The Babel environment (defaults to NODE_ENV).
6-
@param unsafeCompress - Whether to use unsafe compression options (defaults to false).
7-
*/
2+
* Get the terser options for the given environment.
3+
*
4+
* @param NODE_ENV - The Node environment (defaults to "production").
5+
* @param BABEL_ENV - The Babel environment (defaults to NODE_ENV).
6+
* @param unsafeCompress - Whether to use unsafe compression options (defaults to false).
7+
*/
88
export function buildTerserOptions(
99
NODE_ENV: string = "production",
1010
BABEL_ENV: string | undefined = undefined,

0 commit comments

Comments
 (0)