@nsis/dent-cli 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/bin/cli.mjs +3 -3
  2. package/package.json +12 -13
package/bin/cli.mjs CHANGED
@@ -2,7 +2,7 @@ import { Command } from 'commander';
2
2
  import { fileURLToPath } from 'node:url';
3
3
  import { dirname, resolve } from 'node:path';
4
4
  import { promises } from 'node:fs';
5
- import { Dent } from '@nsis/dent';
5
+ import { createFormatter } from '@nsis/dent';
6
6
  import { glob } from 'glob';
7
7
  import logSymbols from 'log-symbols';
8
8
  import colors from 'picocolors';
@@ -33,7 +33,7 @@ async function main() {
33
33
  if (options.debug) {
34
34
  console.log('\nCLI parameters:', { args, options });
35
35
  }
36
- const dent = new Dent({
36
+ const format = createFormatter({
37
37
  endOfLines: options.eol,
38
38
  indentSize: options.indent,
39
39
  trimEmptyLines: options.trim,
@@ -50,7 +50,7 @@ async function main() {
50
50
  console.time(`${logSymbols.success} ${colors.blue(file)}`);
51
51
  }
52
52
  const rawContents = (await promises.readFile(file)).toString();
53
- const formattedContents = dent.format(rawContents);
53
+ const formattedContents = format(rawContents);
54
54
  if (options.debug) {
55
55
  console.log('\nConversion:', {
56
56
  raw: rawContents,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsis/dent-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "An opinionated code formatter for NSIS scripts",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -36,27 +36,26 @@
36
36
  "formatter"
37
37
  ],
38
38
  "dependencies": {
39
- "@nsis/dent": "^0.2.2",
39
+ "@nsis/dent": "^0.3.1",
40
40
  "commander": "^10.0.1",
41
- "glob": "^10.2.6",
41
+ "glob": "^10.3.3",
42
42
  "log-symbols": "^5.1.0",
43
43
  "picocolors": "^1.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@rollup/plugin-commonjs": "^25.0.0",
47
46
  "@rollup/plugin-json": "^6.0.0",
48
- "@rollup/plugin-typescript": "^11.1.1",
47
+ "@rollup/plugin-typescript": "^11.1.2",
49
48
  "@types/node": "^20.2.3",
50
- "@typescript-eslint/eslint-plugin": "^5.59.6",
51
- "@typescript-eslint/parser": "^5.59.6",
52
- "eslint": "^8.41.0",
49
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
50
+ "@typescript-eslint/parser": "^6.0.0",
51
+ "eslint": "^8.45.0",
53
52
  "eslint-plugin-json": "^3.1.0",
54
53
  "husky": "^8.0.3",
55
- "lint-staged": "^13.2.2",
56
- "npm-run-all2": "^6.0.5",
57
- "rollup": "^3.23.0",
58
- "tslib": "^2.5.2",
59
- "typescript": "^5.0.4"
54
+ "lint-staged": "^13.2.3",
55
+ "npm-run-all2": "^6.0.6",
56
+ "rollup": "^3.26.2",
57
+ "tslib": "^2.6.0",
58
+ "typescript": "^5.1.6"
60
59
  },
61
60
  "lint-staged": {
62
61
  "*.(json|ts)": "eslint --cache --fix"