Skip to content

Commit

Permalink
Replace nodemon with fs.watch
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 17, 2024
1 parent e382372 commit 3bf79b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 89 deletions.
3 changes: 1 addition & 2 deletions packages/react-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test": "yarn lint && yarn tsc && yarn format && yarn unit",
"tsc": "tsc",
"unit": "vitest",
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\""
},
"keywords": [
"pdf",
Expand Down Expand Up @@ -76,7 +76,6 @@
"core-js": "^3.37.0",
"cpy-cli": "^5.0.0",
"jsdom": "^24.0.0",
"nodemon": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.0",
Expand Down
92 changes: 5 additions & 87 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ __metadata:
languageName: node
linkType: hard

"chokidar@npm:^3.5.2, chokidar@npm:^3.5.3":
"chokidar@npm:^3.5.3":
version: 3.5.3
resolution: "chokidar@npm:3.5.3"
dependencies:
Expand Down Expand Up @@ -1640,15 +1640,6 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^3.2.7":
version: 3.2.7
resolution: "debug@npm:3.2.7"
dependencies:
ms: "npm:^2.1.1"
checksum: 10c0/37d96ae42cbc71c14844d2ae3ba55adf462ec89fd3a999459dec3833944cd999af6007ff29c780f1c61153bcaaf2c842d1e4ce1ec621e4fc4923244942e4a02a
languageName: node
linkType: hard

"decamelize-keys@npm:^2.0.1":
version: 2.0.1
resolution: "decamelize-keys@npm:2.0.1"
Expand Down Expand Up @@ -2283,13 +2274,6 @@ __metadata:
languageName: node
linkType: hard

"ignore-by-default@npm:^1.0.1":
version: 1.0.1
resolution: "ignore-by-default@npm:1.0.1"
checksum: 10c0/9ab6e70e80f7cc12735def7ecb5527cfa56ab4e1152cd64d294522827f2dcf1f6d85531241537dc3713544e88dd888f65cb3c49c7b2cddb9009087c75274e533
languageName: node
linkType: hard

"ignore@npm:^5.2.4":
version: 5.2.4
resolution: "ignore@npm:5.2.4"
Expand Down Expand Up @@ -2785,7 +2769,7 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
"minimatch@npm:^3.1.1":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
dependencies:
Expand Down Expand Up @@ -2919,7 +2903,7 @@ __metadata:
languageName: node
linkType: hard

"ms@npm:^2.0.0, ms@npm:^2.1.1":
"ms@npm:^2.0.0":
version: 2.1.3
resolution: "ms@npm:2.1.3"
checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48
Expand Down Expand Up @@ -2999,26 +2983,6 @@ __metadata:
languageName: node
linkType: hard

"nodemon@npm:^3.0.0":
version: 3.0.1
resolution: "nodemon@npm:3.0.1"
dependencies:
chokidar: "npm:^3.5.2"
debug: "npm:^3.2.7"
ignore-by-default: "npm:^1.0.1"
minimatch: "npm:^3.1.2"
pstree.remy: "npm:^1.1.8"
semver: "npm:^7.5.3"
simple-update-notifier: "npm:^2.0.0"
supports-color: "npm:^5.5.0"
touch: "npm:^3.1.0"
undefsafe: "npm:^2.0.5"
bin:
nodemon: bin/nodemon.js
checksum: 10c0/471a218227949b38926de78237004c91e226b63ee06f433cf85c2f1c1f8b6bfbef9bceaa8d27786e7cfb539eb84da357d01741884d08a3ae172bebecd0f1de5b
languageName: node
linkType: hard

"nopt@npm:^5.0.0":
version: 5.0.0
resolution: "nopt@npm:5.0.0"
Expand All @@ -3041,17 +3005,6 @@ __metadata:
languageName: node
linkType: hard

"nopt@npm:~1.0.10":
version: 1.0.10
resolution: "nopt@npm:1.0.10"
dependencies:
abbrev: "npm:1"
bin:
nopt: ./bin/nopt.js
checksum: 10c0/ddfbd892116a125fd68849ef564dd5b1f0a5ba0dbbf18782e9499e2efad8f4d3790635b47c6b5d3f7e014069e7b3ce5b8112687e9ae093fcd2678188c866fe28
languageName: node
linkType: hard

"normalize-package-data@npm:^3.0.2":
version: 3.0.3
resolution: "normalize-package-data@npm:3.0.3"
Expand Down Expand Up @@ -3414,13 +3367,6 @@ __metadata:
languageName: node
linkType: hard

"pstree.remy@npm:^1.1.8":
version: 1.1.8
resolution: "pstree.remy@npm:1.1.8"
checksum: 10c0/30f78c88ce6393cb3f7834216cb6e282eb83c92ccb227430d4590298ab2811bc4a4745f850a27c5178e79a8f3e316591de0fec87abc19da648c2b3c6eb766d14
languageName: node
linkType: hard

"punycode@npm:^2.1.1, punycode@npm:^2.3.1":
version: 2.3.1
resolution: "punycode@npm:2.3.1"
Expand Down Expand Up @@ -3503,7 +3449,6 @@ __metadata:
make-cancellable-promise: "npm:^1.3.1"
make-event-props: "npm:^1.6.0"
merge-refs: "npm:^1.3.0"
nodemon: "npm:^3.0.0"
pdfjs-dist: "npm:4.3.136"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
Expand Down Expand Up @@ -3757,7 +3702,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.5.3":
"semver@npm:^7.3.4, semver@npm:^7.3.5":
version: 7.6.0
resolution: "semver@npm:7.6.0"
dependencies:
Expand Down Expand Up @@ -3830,15 +3775,6 @@ __metadata:
languageName: node
linkType: hard

"simple-update-notifier@npm:^2.0.0":
version: 2.0.0
resolution: "simple-update-notifier@npm:2.0.0"
dependencies:
semver: "npm:^7.5.3"
checksum: 10c0/2a00bd03bfbcbf8a737c47ab230d7920f8bfb92d1159d421bdd194479f6d01ebc995d13fbe13d45dace23066a78a3dc6642999b4e3b38b847e6664191575b20c
languageName: node
linkType: hard

"slash@npm:^4.0.0":
version: 4.0.0
resolution: "slash@npm:4.0.0"
Expand Down Expand Up @@ -4008,7 +3944,7 @@ __metadata:
languageName: node
linkType: hard

"supports-color@npm:^5.3.0, supports-color@npm:^5.5.0":
"supports-color@npm:^5.3.0":
version: 5.5.0
resolution: "supports-color@npm:5.5.0"
dependencies:
Expand Down Expand Up @@ -4108,17 +4044,6 @@ __metadata:
languageName: node
linkType: hard

"touch@npm:^3.1.0":
version: 3.1.0
resolution: "touch@npm:3.1.0"
dependencies:
nopt: "npm:~1.0.10"
bin:
nodetouch: ./bin/nodetouch.js
checksum: 10c0/dacb4a639401b83b0a40b56c0565e01096e5ecf38b22a4840d9eeb642a5bea136c6a119e4543f9b172349a5ee343b10cda0880eb47f7d7ddfd6eac59dcf53244
languageName: node
linkType: hard

"tough-cookie@npm:^4.1.3":
version: 4.1.3
resolution: "tough-cookie@npm:4.1.3"
Expand Down Expand Up @@ -4202,13 +4127,6 @@ __metadata:
languageName: node
linkType: hard

"undefsafe@npm:^2.0.5":
version: 2.0.5
resolution: "undefsafe@npm:2.0.5"
checksum: 10c0/96c0466a5fbf395917974a921d5d4eee67bca4b30d3a31ce7e621e0228c479cf893e783a109af6e14329b52fe2f0cb4108665fad2b87b0018c0df6ac771261d5
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
Expand Down

0 comments on commit 3bf79b0

Please sign in to comment.