Skip to content

Commit

Permalink
Fix missing files in npm package (#133)
Browse files Browse the repository at this point in the history
* 0.9.1

* Add .npmignore file

* Bump version

* Bump mo-fmt
  • Loading branch information
rvanasa authored Jul 16, 2024
1 parent ac23eee commit 8228cad
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
target/

/lib/
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "prettier-plugin-motoko",
"version": "0.9.0",
"version": "0.9.2",
"description": "A code formatter for the Motoko smart contract language.",
"main": "lib/environments/node.js",
"browser": "lib/environments/web.js",
"types": "lib/index.d.ts",
"scripts": {
"build:ts": "rimraf ./lib && tsc -p .",
"build:wasm": "run-s build:wasm:bundler build:wasm:nodejs",
"build:wasm:bundler": "wasm-pack build wasm --target bundler --out-dir pkg/bundler",
"build:wasm:nodejs": "wasm-pack build wasm --target nodejs --out-dir pkg/nodejs",
"build:wasm:bundler": "wasm-pack build wasm --target bundler --out-dir pkg/bundler && rm wasm/pkg/bundler/.gitignore",
"build:wasm:nodejs": "wasm-pack build wasm --target nodejs --out-dir pkg/nodejs && rm wasm/pkg/nodejs/.gitignore",
"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",
Expand Down
18 changes: 9 additions & 9 deletions packages/mo-fmt/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 packages/mo-fmt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mo-fmt",
"version": "0.8.4",
"version": "0.9.2",
"description": "An easy-to-use Motoko formatter command.",
"main": "src/cli.js",
"bin": {
Expand All @@ -22,7 +22,7 @@
"commander": "^9.4.0",
"fast-glob": "^3.2.11",
"prettier": "^3.0",
"prettier-plugin-motoko": "^0.9.0"
"prettier-plugin-motoko": "^0.9.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
Expand Down
4 changes: 4 additions & 0 deletions wasm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target/
tests/

!pkg/**/*

0 comments on commit 8228cad

Please sign in to comment.