Skip to content

Commit b09b738

Browse files
IlyaMatsuevrenovate[bot]dependabot[bot]dangmai
authored
Release 2.3.0 (#34)
* Update dependency @types/node to v18.11.16 * Update dependency eslint to v8.30.0 * Update dependency @types/node to v18.11.17 * Update dependency wait-on to v7 (dangmai#730) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update typescript-eslint monorepo to v5.47.0 * Update dependency @types/node to v18.11.18 * Update typescript-eslint monorepo to v5.47.1 * Update dependency @types/jest to v29.2.5 * Update dependency eslint to v8.31.0 * Update dependency eslint-config-prettier to v8.6.0 * Update typescript-eslint monorepo to v5.48.0 * Update dependency husky to v8.0.3 * Update actions/setup-node action to v3.6.0 * Update dependency prettier to v2.8.2 * Bump json5 from 1.0.1 to 1.0.2 (dangmai#745) Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](json5/json5@v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update typescript-eslint monorepo to v5.48.1 * Update dependency ts-jest to v29.0.4 * Update dependency eslint-plugin-import to v2.27.4 * Update dependency ts-jest to v29.0.5 * Update dependency prettier to v2.8.3 * Update dependency rimraf to v4 (dangmai#751) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency rimraf to v4.0.5 * Updated jorje (dangmai#735) Co-authored-by: dangmai <[email protected]> * Update dependency eslint to v8.32.0 * Update dependency rimraf to v4.0.7 * Update typescript-eslint monorepo to v5.48.2 * Update dependency eslint-plugin-import to v2.27.5 * Update dependency rimraf to v4.1.0 * Update dependency rimraf to v4.1.1 * Update dependency @types/jest to v29.2.6 * Update typescript-eslint monorepo to v5.49.0 * Update dependency rimraf to v4.1.2 * Update dependency jest to v29.4.0 * Update dependency @types/jest to v29.4.0 * Update dependency jest to v29.4.1 * Update dependency eslint to v8.33.0 * Update dependency typescript to v4.9.5 * Update typescript-eslint monorepo to v5.50.0 * Updated jorje (dangmai#771) Co-authored-by: dangmai <[email protected]> * Update dependency @types/node to v18.11.19 * Update typescript-eslint monorepo to v5.51.0 * Updated jorje (dangmai#774) Co-authored-by: dangmai <[email protected]> * Update dependency @types/node to v18.13.0 * Update dependency jest to v29.4.2 * Update dependency prettier to v2.8.4 * [chore] enable renovate lockFileMaintenance * [chore] fix renovate config * Lock file maintenance * Update dependency eslint to v8.34.0 * Lock file maintenance * Updated jorje (dangmai#783) Co-authored-by: dangmai <[email protected]> * Update typescript-eslint monorepo to v5.52.0 * Update dependency jest to v29.4.3 * Update dependency @types/node to v18.14.0 * Lock file maintenance * Lock file maintenance * Update typescript-eslint monorepo to v5.53.0 * Update dependency @types/node to v18.14.1 * Update dependency eslint to v8.35.0 * Update dependency @types/node to v18.14.2 * Lock file maintenance * Update typescript-eslint monorepo to v5.54.0 * Updated jorje * Update dependency rimraf to v4.1.3 * Update dependency @types/node to v18.14.4 * Update dependency rimraf to v4.2.0 * Update dependency @types/node to v18.14.5 * Update dependency @types/node to v18.14.6 * Update dependency rimraf to v4.3.0 * Lock file maintenance * Update dependency eslint-config-prettier to v8.7.0 * Update dependency rimraf to v4.3.1 * Update typescript-eslint monorepo to v5.54.1 * Update dependency jest to v29.5.0 * Update dependency rimraf to v4.4.0 * Update dependency @types/node to v18.15.0 * Update dependency eslint to v8.36.0 * Lock file maintenance * Update dependency @types/node to v18.15.1 * Update dependency @types/jest to v29.4.1 * Update dependency @types/node to v18.15.2 * Update typescript-eslint monorepo to v5.55.0 * Update dependency @types/node to v18.15.3 * Update peter-evans/create-pull-request action to v4.2.4 * Update dependency @types/jest to v29.4.2 * Update dependency @types/jest to v29.4.4 * Update dependency typescript to v5 * Update dependency @types/jest to v29.5.0 * Updated jorje * Lock file maintenance * Update dependency prettier to v2.8.5 * Update typescript-eslint monorepo to v5.56.0 * Update dependency eslint-config-prettier to v8.8.0 * Update dependency @types/node to v18.15.5 * Update dependency prettier to v2.8.6 * Update dependency rimraf to v4.4.1 * Update dependency @types/node to v18.15.6 * Update dependency @types/node to v18.15.8 * Update dependency prettier to v2.8.7 * Update dependency @types/node to v18.15.9 * Update dependency @types/node to v18.15.10 * Lock file maintenance * Update typescript-eslint monorepo to v5.57.0 * Update dependency @types/node to v18.15.11 * Update dependency eslint to v8.37.0 * Update dependency typescript to v5.0.3 * Update dependency ts-jest to v29.1.0 * Lock file maintenance * Update typescript-eslint monorepo to v5.57.1 * Update dependency axios to v1.3.5 * Update dependency typescript to v5.0.4 * Update dependency eslint to v8.38.0 * Update typescript-eslint monorepo to v5.58.0 * Lock file maintenance * Update peter-evans/create-pull-request action to v5 * Updated jorje * Update dependency rimraf to v5 * Lock file maintenance * Update typescript-eslint monorepo to v5.59.0 * Update dependency @types/jest to v29.5.1 * Update dependency axios to v1.3.6 * Update dependency @types/node to v18.15.12 * Update dependency @types/node to v18.15.13 * Update dependency eslint to v8.39.0 * Update dependency @types/node to v18.16.0 * Update dependency prettier to v2.8.8 * Updated jorje * chore - remove husky and yarnhook * Fix dangmai#738 - Add support for User Mode in Database Operations * chore - remove husky files * Update JS-DevTools/npm-publish action to v2 * chore - remove workaround for npm-publish action * Finalize CHANGELOG for 1.13.0 * 1.13.0 * Lock file maintenance * Update typescript-eslint monorepo to v5.59.1 * Update dependency @types/node to v18.16.1 * Update dependency @types/node to v18.16.2 * Update dependency yargs to v17.7.2 * Update dependency axios to v1.4.0 * Update dependency @types/node to v18.16.3 * Updated jorje * Lock file maintenance * Update typescript-eslint monorepo to v5.59.2 * Update peter-evans/create-pull-request action to v5.0.1 * Update dependency @types/node to v18.16.4 * Update dependency @types/node to v18.16.5 * Update dependency eslint to v8.40.0 * Init commit to get Prettier to run * Switch peerDependency to all versions of Prettier ^3.0.0 * Switch parser to async * Fix parser tests * Adopt runSpec to new Prettier async API * Swap out usage of Concat type * Add --experimental-vm-modules so Jest can use ESM * Make sure tests can run on Windows * Stop running tests on NodeJS 14 * Remove all usage of concat * Fix various ESLint issues * Cleaning up ESLint deps * Temporarily add synckit as dev dep Otherwise eslint-plugin-prettier complains about missing module * Temporarily ignore ESLint rule ban-ts-comment * Fix plugin entry point for debug-check script * Run tests without compiling first * Create standalone bundle * Build standalone package directly into `dist` directory * Remove output dir from gitignore * Use fetch API instead of axios * Fix linting issue * Increase timeout for synchronous parser tests * Debug in VSCode * Upgrade prettier to latest alpha version * Roll back dependency prettier to ^3.0.0-alpha * Add docs for Prettier v3 upgrade * Switch to node16 base for tsconfig * Upgrade to prettier 3.0.0-alpha.11 * Update dependency @rollup/plugin-commonjs to v23.0.7 * Update dependency eslint-plugin-prettier to v5.0.0-alpha.1 * Update dependency @rollup/plugin-node-resolve to v15.0.2 * Remove direct dep on synckit * Update dependency rollup to v3.21.5 * Update dependency @babel/preset-env to v7.21.5 * Update dependency rollup-plugin-polyfill-node to v0.12.0 * Update dependency @rollup/plugin-terser to v0.4.1 * Update dependency @rollup/plugin-json to v6 * Update dependency @rollup/plugin-commonjs to v24 * Update dependency @rollup/plugin-typescript to v11 * Replace usage of deprecated getValue method * Fix code format * Remove usage of non null assertion * Update dependency @types/node to v18.16.6 * Update typescript-eslint monorepo to v5.59.5 * Update dependency rollup to v3.21.6 * Update dependency @types/node to v18.16.7 * Update dependency @types/node to v18.16.8 * Update dependency @tsconfig/node16 to v1.0.4 * Update dependency @rollup/plugin-commonjs to v25 * Update dependency @rollup/plugin-typescript to v11.1.1 * Update dependency @types/node to v18.16.9 * Update dependency rollup to v3.21.7 * Add helper script to run tests in standalone mode * [chore] set up asdf tool versions and bump NodeJS dependency * [chore] include bin folder when running prettier * Replace yargs with NodeJS built-in parseArgs * Update dependency cross-fetch to v3.1.6 * Add vite dev dependency * Init vite config * Switch from rollup to vite * change standalone file name in package.json * helper scripts for vite * make sure vite doesn't empty dist dir * Lock file maintenance * Update dependency vite to v4.3.6 * Update typescript-eslint monorepo to v5.59.6 * Update dependency vite to v4.3.7 * Update dependency rimraf to v5.0.1 * Update dependency vite to v4.3.8 * Update dependency eslint to v8.41.0 * Updated jorje * Lock file maintenance * Update typescript-eslint monorepo to v5.59.7 * Update dependency vite to v4.3.9 * Lock file maintenance * Update typescript-eslint monorepo to v5.59.8 * Update dependency @types/jest to v29.5.2 * Update dependency typescript to v5.1.3 * Update dependency eslint to v8.42.0 * Lock file maintenance * Update typescript-eslint monorepo to v5.59.9 * Updated jorje * Lock file maintenance * Update typescript-eslint monorepo to v5.59.11 * Update peter-evans/create-pull-request action to v5.0.2 * Updated jorje * Update dependency eslint to v8.43.0 * Lock file maintenance * Update typescript-eslint monorepo to v5.60.0 * chore - latest Prettier alpha * Lock file maintenance * Update typescript-eslint monorepo to v5.60.1 * Update dependency @tsconfig/node16 to v16 * Update dependency typescript to v5.1.5 * Update dependency typescript to v5.1.6 * Updated jorje * Update dependency ts-jest to v29.1.1 * Updated jorje * Update dependency eslint to v8.44.0 * Update dependency cross-fetch to v3.1.7 * Add husky to dev dependencies --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dang Mai <[email protected]> Co-authored-by: dangmai <[email protected]>
1 parent 74caa0b commit b09b738

File tree

66 files changed

+2080
-1549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2080
-1549
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"plugin:@typescript-eslint/recommended",
55
"airbnb-base",
66
"airbnb-typescript/base",
7+
"plugin:prettier-doc/recommended",
78
"prettier"
89
],
910
"plugins": ["prettier"],

.github/workflows/tests-deployments.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
node:
19-
- "19"
19+
- "20"
2020
- "18"
2121
- "16"
22-
- "14"
2322
java:
2423
- "17"
2524
- "11"
@@ -34,7 +33,7 @@ jobs:
3433
ENABLE_PACKAGE_TESTS: true
3534
env:
3635
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
37-
RUN_INTEGRATION_TESTS: ${{ matrix.ENABLE_INTEGRATION_TESTS && (github.event_name == 'schedule' || github.event_name == 'repository_dispatch' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags')) }}
36+
RUN_INTEGRATION_TESTS: ${{ matrix.ENABLE_INTEGRATION_TESTS && (github.event_name == 'schedule' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags') || github.event_name == 'pull_request') }}
3837
RUN_PACKAGE_TESTS: ${{ matrix.ENABLE_PACKAGE_TESTS && (github.event_name == 'schedule' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch') }}
3938
RUN_DEPLOYMENT: ${{ matrix.ENABLE_DEPLOYMENT && startsWith(github.ref, 'refs/tags') }}
4039
name: Run tests on NodeJS ${{ matrix.node }} and Java ${{ matrix.java }}
@@ -70,7 +69,7 @@ jobs:
7069
run: yarn run wait-server
7170

7271
- name: Run functional tests
73-
run: AST_COMPARE=true yarn test -c jest.config.standalone.js
72+
run: AST_COMPARE=true yarn test:standalone
7473

7574
- name: Upload code coverage
7675
if: env.ENABLE_CODE_COVERAGE
@@ -80,6 +79,13 @@ jobs:
8079
if: env.RUN_INTEGRATION_TESTS == 'true'
8180
run: sudo apt-get install -y -qq parallel
8281

82+
# This step is needed because integration tests rely on the
83+
# existence of the compiled JS, as they are run using Node
84+
# instead of ts-node
85+
- name: Build the project
86+
if: env.RUN_INTEGRATION_TESTS == 'true'
87+
run: yarn build
88+
8389
- name: Run integration tests
8490
if: env.RUN_INTEGRATION_TESTS == 'true'
8591
run: ./tests_integration/format/run-integration-tests.sh
@@ -90,7 +96,7 @@ jobs:
9096

9197
- name: Deploy to NPM
9298
if: env.RUN_DEPLOYMENT == 'true'
93-
uses: JS-DevTools/npm-publish@v1
99+
uses: JS-DevTools/npm-publish@v2
94100
with:
95101
token: ${{ secrets.NPM_TOKEN }}
96102

@@ -106,9 +112,3 @@ jobs:
106112
- name: Stop Apex parsing server
107113
if: ${{ always() }}
108114
run: yarn run stop-server
109-
env:
110-
# Workaround for this bug from npm-publish Github Action:
111-
# https://github.com/JS-DevTools/npm-publish/issues/15
112-
# That Action leaves some placeholder (INPUT_TOKEN) in the .npmrc file
113-
# which needs to filled in by _something_, otherwise `yarn` fails
114-
INPUT_TOKEN: ''

.github/workflows/update-jorje.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- name: Give execute bit to executables
2222
run: chmod +x vendor/apex-ast-serializer/bin/apex-ast-serializer vendor/apex-ast-serializer/bin/apex-ast-serializer-http
2323
- name: Create Pull Request
24-
uses: peter-evans/create-pull-request@v4.2.3
24+
uses: peter-evans/create-pull-request@v5.0.2
2525
with:
2626
commit-message: Updated jorje
27-
title: 'Update jorje dependency'
27+
title: "Update jorje dependency"
2828
branch: updates/jorje
2929
token: ${{ secrets.PERSONAL_TOKEN }}

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodejs 16.20.0
2+
java temurin-17.0.7+7

.vscode/launch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"disableOptimisticBPs": true,
1717
"windows": {
1818
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
19+
},
20+
"env": {
21+
"NODE_OPTIONS": "--experimental-vm-modules"
1922
}
2023
},
2124
{
@@ -35,6 +38,9 @@
3538
"disableOptimisticBPs": true,
3639
"windows": {
3740
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
41+
},
42+
"env": {
43+
"NODE_OPTIONS": "--experimental-vm-modules"
3844
}
3945
}
4046
]

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2+
"json.schemas": [
3+
{
4+
"fileMatch": ["/renovate.json5"],
5+
"url": "https://docs.renovatebot.com/renovate-schema.json"
6+
}
7+
],
28
"editor.formatOnSave": true,
39
"jestrunner.configPath": "jest.config.standalone.js"
4-
}
10+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 2.3.0
2+
3+
## Formatting Changes
4+
5+
- Add support for User Mode in Database Operations ([issue](https://github.com/dangmai/prettier-plugin-apex/issues/738)).
6+
7+
## Dependency Changes
8+
9+
- Support Prettier v3 ([issue](https://github.com/dangmai/prettier-plugin-apex/issues/673)). You cannot use this version with Prettier v2, please plan your upgrade accordingly.
10+
- Drop support for NodeJS < 16.19.0.
11+
112
# 2.2.0
213

314
## Formatting Changes

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ yarn install
77
yarn run lint
88
yarn run start-server # This spins up the built in HTTP parsing server
99
# In another terminal
10-
yarn test -c jest.config.standalone.js
10+
yarn test:standalone
1111
# When you are done
1212
yarn run stop-server
1313
```

bin/start-apex-server.ts

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
#!/usr/bin/env node
2-
import yargs from "yargs";
3-
import { hideBin } from "yargs/helpers";
2+
import { parseArgs } from "util";
43

54
import { start } from "../src/http-server";
65

7-
async function setup(host: string, port: number, allowedOrigins?: string) {
8-
await start(host, port, allowedOrigins);
6+
async function setup(host: string, port: string, allowedOrigins?: string) {
7+
await start(host, Number.parseInt(port, 10), allowedOrigins);
98
}
109

11-
yargs(hideBin(process.argv))
12-
.command(
13-
"$0",
14-
"start the built-in parsing server",
15-
{
16-
host: {
17-
alias: "h",
18-
default: "localhost",
19-
},
20-
port: {
21-
alias: "p",
22-
default: 2117,
23-
},
24-
"cors-allowed-origins": {
25-
describe:
26-
"Comma-delimited list of allowed origins to be added to CORS headers",
27-
alias: "c",
28-
type: "string",
29-
},
30-
},
31-
(argv) => {
32-
setup(argv.host, argv.port, argv["cors-allowed-origins"]);
33-
},
34-
)
35-
.help()
36-
.parse();
10+
const options = {
11+
host: {
12+
short: "h",
13+
default: "localhost",
14+
type: "string" as const,
15+
},
16+
port: {
17+
short: "p",
18+
default: "2117",
19+
type: "string" as const,
20+
},
21+
"cors-allowed-origins": {
22+
describe:
23+
"Comma-delimited list of allowed origins to be added to CORS headers",
24+
short: "c",
25+
type: "string" as const,
26+
},
27+
};
28+
29+
const parsed = parseArgs({ options });
30+
setup(
31+
parsed.values.host ?? options.host.default,
32+
parsed.values.port ?? options.port.default,
33+
parsed.values["cors-allowed-origins"],
34+
);

bin/stop-apex-server.ts

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11
#!/usr/bin/env node
2-
import yargs from "yargs";
3-
import { hideBin } from "yargs/helpers";
2+
import { parseArgs } from "util";
43

54
import { stop } from "../src/http-server";
65

7-
async function teardown(host: string, port: number) {
8-
await stop(host, port);
6+
async function teardown(host: string, port: string) {
7+
await stop(host, Number.parseInt(port, 10));
98
}
109

11-
yargs(hideBin(process.argv))
12-
.command(
13-
"$0",
14-
"stop the built-in parsing server",
15-
{
16-
host: {
17-
alias: "h",
18-
default: "localhost",
19-
},
20-
port: {
21-
alias: "p",
22-
default: 2117,
23-
},
24-
},
25-
(argv) => {
26-
teardown(argv.host, argv.port);
27-
},
28-
)
29-
.help()
30-
.parse();
10+
const options = {
11+
host: {
12+
short: "h",
13+
default: "localhost",
14+
type: "string" as const,
15+
},
16+
port: {
17+
short: "p",
18+
default: "2117",
19+
type: "string" as const,
20+
},
21+
};
22+
23+
const parsed = parseArgs({ options });
24+
teardown(
25+
parsed.values.host ?? options.host.default,
26+
parsed.values.port ?? options.port.default,
27+
);

package.json

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "@ilyamatsuev/prettier-plugin-apex",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Salesforce Apex plugin for Prettier (Fork of dangmai/prettier-plugin-apex with some formatting adjustments) [Not Opinionated]",
55
"main": "dist/src/index.js",
6+
"browser": "dist/src/standalone.umd.js",
7+
"unpkg": "dist/src/standalone.umd.js",
68
"bin": {
79
"start-apex-server": "dist/bin/start-apex-server.js",
810
"stop-apex-server": "dist/bin/stop-apex-server.js",
911
"apex-ast-serializer": "vendor/apex-ast-serializer/bin/apex-ast-serializer",
1012
"apex-ast-serializer-http": "vendor/apex-ast-serializer/bin/apex-ast-serializer-http"
1113
},
1214
"engines": {
13-
"node": ">= 14.0.0"
15+
"node": ">= 16.19.0"
1416
},
1517
"files": [
1618
"/dist/bin",
@@ -19,18 +21,22 @@
1921
],
2022
"scripts": {
2123
"build": "tsc",
22-
"build:prod": "rimraf dist && tsc --project tsconfig.prod.json",
23-
"dev": "tsc --watch",
24-
"pretest": "yarn run lint && yarn run build",
25-
"test": "jest",
26-
"start-server": "ts-node bin/start-apex-server.ts",
24+
"build:prod": "rimraf dist && tsc --project tsconfig.prod.json && yarn build:standalone",
25+
"build:standalone": "yarn vite build",
26+
"pretest": "yarn run lint",
27+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
28+
"test:standalone": "yarn test -c jest.config.standalone.js",
29+
"start-server": "ts-node bin/start-apex-server.ts -h 0.0.0.0 -c '*'",
2730
"wait-server": "wait-on --timeout 300000 http://localhost:2117/api/ast/",
2831
"stop-server": "ts-node bin/stop-apex-server.ts",
2932
"lint": "eslint \"{src,bin,tests_config}/**/*.{js,ts}\"",
30-
"prettier": "prettier --write \"{src,bin,tests_config}/**/*.{js,ts}\" \"./*.md\"",
33+
"prettier": "prettier --write \"{bin,src,tests_config}/**/*.{js,mjs,ts}\" \"./*.{md,mjs,ts}\"",
3134
"prepack": "yarn run build:prod",
3235
"prepare": "husky install",
33-
"debug-check": "prettier --apex-standalone-parser built-in --apex-standalone-port 2117 --debug-check --plugin=."
36+
"debug-check": "prettier --apex-standalone-parser built-in --apex-standalone-port 2117 --debug-check --plugin=./dist/src/index.js",
37+
"vite:build": "vite build",
38+
"vite:build:watch": "vite build --watch",
39+
"vite:dev": "vite"
3440
},
3541
"keywords": [
3642
"apex",
@@ -39,46 +45,37 @@
3945
"author": "Dang Mai <[email protected]>",
4046
"license": "MIT",
4147
"devDependencies": {
42-
"@tsconfig/node14": "1.0.3",
43-
"@types/jest": "29.4.0",
44-
"@types/node": "18.14.0",
48+
"@tsconfig/node16": "16.1.0",
49+
"@types/jest": "29.5.2",
50+
"@types/node": "18.16.9",
4551
"@types/wait-on": "5.3.1",
46-
"@typescript-eslint/eslint-plugin": "5.52.0",
47-
"@typescript-eslint/parser": "5.52.0",
48-
"eslint": "8.34.0",
52+
"@typescript-eslint/eslint-plugin": "5.60.1",
53+
"@typescript-eslint/parser": "5.60.1",
54+
"cross-env": "7.0.3",
55+
"eslint": "8.44.0",
4956
"eslint-config-airbnb-base": "15.0.0",
5057
"eslint-config-airbnb-typescript": "17.0.0",
51-
"eslint-config-prettier": "8.6.0",
58+
"eslint-config-prettier": "8.8.0",
5259
"eslint-plugin-import": "2.27.5",
53-
"eslint-plugin-prettier": "4.2.1",
54-
"husky": "8.0.3",
55-
"jest": "29.4.3",
60+
"eslint-plugin-prettier": "5.0.0-alpha.1",
61+
"eslint-plugin-prettier-doc": "1.1.0",
62+
"husky": "^8.0.3",
63+
"jest": "29.5.0",
5664
"jest-snapshot-serializer-raw": "1.2.0",
57-
"prettier": "2.8.4",
58-
"rimraf": "4.1.2",
59-
"ts-jest": "29.0.5",
65+
"prettier": "3.0.0-alpha.12",
66+
"rimraf": "5.0.1",
67+
"ts-jest": "29.1.1",
6068
"ts-node": "10.9.1",
61-
"typescript": "4.9.5",
62-
"yarnhook": "0.6.0"
69+
"typescript": "5.1.6",
70+
"vite": "4.3.9"
6371
},
6472
"peerDependencies": {
65-
"prettier": ">= 2.7.x"
73+
"prettier": "^3.0.0-alpha"
6674
},
6775
"dependencies": {
68-
"axios": "^1.0.0",
76+
"cross-fetch": "3.1.7",
6977
"jest-docblock": "^29.0.0",
70-
"wait-on": "^7.0.0",
71-
"yargs": "^17.0.0"
72-
},
73-
"directories": {
74-
"test": "tests"
75-
},
76-
"repository": {
77-
"type": "git",
78-
"url": "git+https://github.com/IlyaMatsuev/prettier-plugin-apex.git"
79-
},
80-
"bugs": {
81-
"url": "https://github.com/IlyaMatsuev/prettier-plugin-apex/issues"
78+
"wait-on": "^7.0.0"
8279
},
8380
"homepage": "https://github.com/IlyaMatsuev/prettier-plugin-apex#readme"
8481
}

0 commit comments

Comments
 (0)