Skip to content

Commit

Permalink
Use Prettier 2 for standalone CLI (#134)
Browse files Browse the repository at this point in the history
* Update 'package' script

* Use Prettier 2 for standalone CLI

* Bump version

* Bump 'mo-fmt'
  • Loading branch information
rvanasa authored Aug 14, 2024
1 parent cf6ef61 commit c4b19fa
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 59 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-plugin-motoko",
"version": "0.9.2",
"version": "0.9.3",
"description": "A code formatter for the Motoko smart contract language.",
"main": "lib/environments/node.js",
"browser": "lib/environments/web.js",
Expand All @@ -13,7 +13,7 @@
"build": "run-s build:wasm build:ts",
"test": "npm run build:wasm:nodejs && npm run test:quick",
"test:quick": "node --experimental-vm-modules node_modules/jest/bin/jest",
"package": "rimraf ./pkg && run-s build test && pkg -t node14-linux,node14-win,node14-macos bin/mo-fmt.js -o pkg/mo-fmt",
"package": "cd packages/mo-fmt && npm run package",
"prepublishOnly": "run-s build test:quick"
},
"dependencies": {
Expand Down
64 changes: 32 additions & 32 deletions packages/mo-fmt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/mo-fmt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mo-fmt",
"version": "0.9.2",
"version": "0.9.3",
"description": "An easy-to-use Motoko formatter command.",
"main": "src/cli.js",
"bin": {
Expand All @@ -21,8 +21,8 @@
"dependencies": {
"commander": "^9.4.0",
"fast-glob": "^3.2.11",
"prettier": "^3.0",
"prettier-plugin-motoko": "^0.9.2"
"prettier": "2",
"prettier-plugin-motoko": "^0.9.3"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
Expand Down

0 comments on commit c4b19fa

Please sign in to comment.