Unverified Commit aa7cdf35 authored by Jan Kaifer's avatar Jan Kaifer Committed by GitHub

Remove notifications emitted during pnpm dev (#43801)

Co-authored-by: 's avatarTim Neutkens <tim@timneutkens.nl>
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 16cf9a8b
...@@ -152,8 +152,8 @@ ...@@ -152,8 +152,8 @@
"glob": "7.1.6", "glob": "7.1.6",
"gzip-size": "5.1.1", "gzip-size": "5.1.1",
"html-validator": "5.1.18", "html-validator": "5.1.18",
"husky": "8.0.0",
"http-proxy": "1.18.1", "http-proxy": "1.18.1",
"husky": "8.0.0",
"image-size": "0.9.3", "image-size": "0.9.3",
"is-animated": "2.0.2", "is-animated": "2.0.2",
"isomorphic-unfetch": "3.0.0", "isomorphic-unfetch": "3.0.0",
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
"nanoid": "3.1.30", "nanoid": "3.1.30",
"next": "workspace:*", "next": "workspace:*",
"node-fetch": "2.6.7", "node-fetch": "2.6.7",
"node-notifier": "8.0.1",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"pixrem": "5.0.0", "pixrem": "5.0.0",
...@@ -217,9 +216,9 @@ ...@@ -217,9 +216,9 @@
"typescript": "4.8.2", "typescript": "4.8.2",
"unfetch": "4.2.0", "unfetch": "4.2.0",
"wait-port": "0.2.2", "wait-port": "0.2.2",
"whatwg-fetch": "3.0.0",
"webpack": "5.74.0", "webpack": "5.74.0",
"webpack-bundle-analyzer": "4.7.0", "webpack-bundle-analyzer": "4.7.0",
"whatwg-fetch": "3.0.0",
"ws": "8.2.3" "ws": "8.2.3"
}, },
"resolutions": { "resolutions": {
......
// eslint-disable-next-line import/no-extraneous-dependencies // eslint-disable-next-line import/no-extraneous-dependencies
const notifier = require('node-notifier')
// eslint-disable-next-line import/no-extraneous-dependencies
const { relative, basename, resolve, join, dirname } = require('path') const { relative, basename, resolve, join, dirname } = require('path')
// eslint-disable-next-line import/no-extraneous-dependencies // eslint-disable-next-line import/no-extraneous-dependencies
const glob = require('glob') const glob = require('glob')
...@@ -2130,7 +2128,6 @@ export async function bin(task, opts) { ...@@ -2130,7 +2128,6 @@ export async function bin(task, opts) {
.source(opts.src || 'bin/*') .source(opts.src || 'bin/*')
.swc('server', { stripExtension: true, dev: opts.dev }) .swc('server', { stripExtension: true, dev: opts.dev })
.target('dist/bin', { mode: '0755' }) .target('dist/bin', { mode: '0755' })
notify('Compiled binaries')
} }
export async function cli(task, opts) { export async function cli(task, opts) {
...@@ -2138,7 +2135,6 @@ export async function cli(task, opts) { ...@@ -2138,7 +2135,6 @@ export async function cli(task, opts) {
.source('cli/**/*.+(js|ts|tsx)') .source('cli/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/cli') .target('dist/cli')
notify('Compiled cli files')
} }
export async function lib(task, opts) { export async function lib(task, opts) {
...@@ -2146,7 +2142,6 @@ export async function lib(task, opts) { ...@@ -2146,7 +2142,6 @@ export async function lib(task, opts) {
.source(opts.src || 'lib/**/*.+(js|ts|tsx)') .source(opts.src || 'lib/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/lib') .target('dist/lib')
notify('Compiled lib files')
} }
export async function lib_esm(task, opts) { export async function lib_esm(task, opts) {
...@@ -2154,7 +2149,6 @@ export async function lib_esm(task, opts) { ...@@ -2154,7 +2149,6 @@ export async function lib_esm(task, opts) {
.source(opts.src || 'lib/**/*.+(js|ts|tsx)') .source(opts.src || 'lib/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev, esm: true }) .swc('server', { dev: opts.dev, esm: true })
.target('dist/esm/lib') .target('dist/esm/lib')
notify('Compiled lib files')
} }
export async function server(task, opts) { export async function server(task, opts) {
...@@ -2167,8 +2161,6 @@ export async function server(task, opts) { ...@@ -2167,8 +2161,6 @@ export async function server(task, opts) {
join(__dirname, 'server/google-font-metrics.json'), join(__dirname, 'server/google-font-metrics.json'),
join(__dirname, 'dist/server/google-font-metrics.json') join(__dirname, 'dist/server/google-font-metrics.json')
) )
notify('Compiled server files')
} }
export async function server_esm(task, opts) { export async function server_esm(task, opts) {
...@@ -2176,7 +2168,6 @@ export async function server_esm(task, opts) { ...@@ -2176,7 +2168,6 @@ export async function server_esm(task, opts) {
.source(opts.src || 'server/**/*.+(js|ts|tsx)') .source(opts.src || 'server/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev, esm: true }) .swc('server', { dev: opts.dev, esm: true })
.target('dist/esm/server') .target('dist/esm/server')
notify('Compiled server files to ESM')
} }
export async function nextbuild(task, opts) { export async function nextbuild(task, opts) {
...@@ -2186,7 +2177,6 @@ export async function nextbuild(task, opts) { ...@@ -2186,7 +2177,6 @@ export async function nextbuild(task, opts) {
}) })
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/build') .target('dist/build')
notify('Compiled build files')
} }
export async function nextbuild_esm(task, opts) { export async function nextbuild_esm(task, opts) {
...@@ -2196,7 +2186,6 @@ export async function nextbuild_esm(task, opts) { ...@@ -2196,7 +2186,6 @@ export async function nextbuild_esm(task, opts) {
}) })
.swc('server', { dev: opts.dev, esm: true }) .swc('server', { dev: opts.dev, esm: true })
.target('dist/esm/build') .target('dist/esm/build')
notify('Compiled build files to ESM')
} }
export async function nextbuildjest(task, opts) { export async function nextbuildjest(task, opts) {
...@@ -2206,7 +2195,6 @@ export async function nextbuildjest(task, opts) { ...@@ -2206,7 +2195,6 @@ export async function nextbuildjest(task, opts) {
}) })
.swc('server', { dev: opts.dev, interopClientDefaultExport: true }) .swc('server', { dev: opts.dev, interopClientDefaultExport: true })
.target('dist/build/jest') .target('dist/build/jest')
notify('Compiled build/jest files')
} }
export async function client(task, opts) { export async function client(task, opts) {
...@@ -2214,7 +2202,6 @@ export async function client(task, opts) { ...@@ -2214,7 +2202,6 @@ export async function client(task, opts) {
.source(opts.src || 'client/**/*.+(js|ts|tsx)') .source(opts.src || 'client/**/*.+(js|ts|tsx)')
.swc('client', { dev: opts.dev, interopClientDefaultExport: true }) .swc('client', { dev: opts.dev, interopClientDefaultExport: true })
.target('dist/client') .target('dist/client')
notify('Compiled client files')
} }
export async function client_esm(task, opts) { export async function client_esm(task, opts) {
...@@ -2222,7 +2209,6 @@ export async function client_esm(task, opts) { ...@@ -2222,7 +2209,6 @@ export async function client_esm(task, opts) {
.source(opts.src || 'client/**/*.+(js|ts|tsx)') .source(opts.src || 'client/**/*.+(js|ts|tsx)')
.swc('client', { dev: opts.dev, esm: true }) .swc('client', { dev: opts.dev, esm: true })
.target('dist/esm/client') .target('dist/esm/client')
notify('Compiled client files to ESM')
} }
// export is a reserved keyword for functions // export is a reserved keyword for functions
...@@ -2231,7 +2217,6 @@ export async function nextbuildstatic(task, opts) { ...@@ -2231,7 +2217,6 @@ export async function nextbuildstatic(task, opts) {
.source(opts.src || 'export/**/*.+(js|ts|tsx)') .source(opts.src || 'export/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/export') .target('dist/export')
notify('Compiled export files')
} }
export async function pages_app(task, opts) { export async function pages_app(task, opts) {
...@@ -2300,7 +2285,6 @@ export async function telemetry(task, opts) { ...@@ -2300,7 +2285,6 @@ export async function telemetry(task, opts) {
.source(opts.src || 'telemetry/**/*.+(js|ts|tsx)') .source(opts.src || 'telemetry/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/telemetry') .target('dist/telemetry')
notify('Compiled telemetry files')
} }
export async function trace(task, opts) { export async function trace(task, opts) {
...@@ -2308,7 +2292,6 @@ export async function trace(task, opts) { ...@@ -2308,7 +2292,6 @@ export async function trace(task, opts) {
.source(opts.src || 'trace/**/*.+(js|ts|tsx)') .source(opts.src || 'trace/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev }) .swc('server', { dev: opts.dev })
.target('dist/trace') .target('dist/trace')
notify('Compiled trace files')
} }
export async function build(task, opts) { export async function build(task, opts) {
...@@ -2370,7 +2353,6 @@ export async function shared(task, opts) { ...@@ -2370,7 +2353,6 @@ export async function shared(task, opts) {
) )
.swc('client', { dev: opts.dev }) .swc('client', { dev: opts.dev })
.target('dist/shared') .target('dist/shared')
notify('Compiled shared files')
} }
export async function shared_esm(task, opts) { export async function shared_esm(task, opts) {
...@@ -2380,7 +2362,6 @@ export async function shared_esm(task, opts) { ...@@ -2380,7 +2362,6 @@ export async function shared_esm(task, opts) {
) )
.swc('client', { dev: opts.dev, esm: true }) .swc('client', { dev: opts.dev, esm: true })
.target('dist/esm/shared') .target('dist/esm/shared')
notify('Compiled shared files to ESM')
} }
export async function shared_re_exported(task, opts) { export async function shared_re_exported(task, opts) {
...@@ -2391,7 +2372,6 @@ export async function shared_re_exported(task, opts) { ...@@ -2391,7 +2372,6 @@ export async function shared_re_exported(task, opts) {
) )
.swc('client', { dev: opts.dev, interopClientDefaultExport: true }) .swc('client', { dev: opts.dev, interopClientDefaultExport: true })
.target('dist/shared') .target('dist/shared')
notify('Compiled shared re-exported files')
} }
export async function shared_re_exported_esm(task, opts) { export async function shared_re_exported_esm(task, opts) {
...@@ -2404,27 +2384,12 @@ export async function shared_re_exported_esm(task, opts) { ...@@ -2404,27 +2384,12 @@ export async function shared_re_exported_esm(task, opts) {
esm: true, esm: true,
}) })
.target('dist/esm/shared') .target('dist/esm/shared')
notify('Compiled shared re-exported files as ESM')
} }
export async function server_wasm(task, opts) { export async function server_wasm(task, opts) {
await task.source(opts.src || 'server/**/*.+(wasm)').target('dist/server') await task.source(opts.src || 'server/**/*.+(wasm)').target('dist/server')
notify('Moved server wasm files')
} }
export async function release(task) { export async function release(task) {
await task.clear('dist').start('build') await task.clear('dist').start('build')
} }
// notification helper
function notify(msg) {
try {
notifier.notify({
title: '▲ Next',
message: msg,
icon: false,
})
} catch (err) {
// notifier can fail on M1 machines
}
}
...@@ -136,7 +136,6 @@ importers: ...@@ -136,7 +136,6 @@ importers:
nanoid: 3.1.30 nanoid: 3.1.30
next: workspace:* next: workspace:*
node-fetch: 2.6.7 node-fetch: 2.6.7
node-notifier: 8.0.1
npm-run-all: 4.1.5 npm-run-all: 4.1.5
nprogress: 0.2.0 nprogress: 0.2.0
pixrem: 5.0.0 pixrem: 5.0.0
...@@ -297,7 +296,7 @@ importers: ...@@ -297,7 +296,7 @@ importers:
image-size: 0.9.3 image-size: 0.9.3
is-animated: 2.0.2 is-animated: 2.0.2
isomorphic-unfetch: 3.0.0 isomorphic-unfetch: 3.0.0
jest: 27.0.6_node-notifier@8.0.1 jest: 27.0.6
jest-extended: 1.2.1 jest-extended: 1.2.1
json5: 2.2.1 json5: 2.2.1
ky: 0.19.1 ky: 0.19.1
...@@ -311,7 +310,6 @@ importers: ...@@ -311,7 +310,6 @@ importers:
nanoid: 3.1.30 nanoid: 3.1.30
next: link:packages/next next: link:packages/next
node-fetch: 2.6.7 node-fetch: 2.6.7
node-notifier: 8.0.1
npm-run-all: 4.1.5 npm-run-all: 4.1.5
nprogress: 0.2.0 nprogress: 0.2.0
pixrem: 5.0.0 pixrem: 5.0.0
...@@ -4812,7 +4810,7 @@ packages: ...@@ -4812,7 +4810,7 @@ packages:
slash: 3.0.0 slash: 3.0.0
dev: true dev: true
/@jest/core/27.0.6_node-notifier@8.0.1: /@jest/core/27.0.6:
resolution: {integrity: sha512-SsYBm3yhqOn5ZLJCtccaBcvD/ccTLCeuDv8U41WJH/V1MW5eKUkeMHT9U+Pw/v1m1AIWlnIW/eM2XzQr0rEmow==} resolution: {integrity: sha512-SsYBm3yhqOn5ZLJCtccaBcvD/ccTLCeuDv8U41WJH/V1MW5eKUkeMHT9U+Pw/v1m1AIWlnIW/eM2XzQr0rEmow==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
peerDependencies: peerDependencies:
...@@ -4822,7 +4820,7 @@ packages: ...@@ -4822,7 +4820,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
'@jest/console': 27.0.6 '@jest/console': 27.0.6
'@jest/reporters': 27.0.6_node-notifier@8.0.1 '@jest/reporters': 27.0.6
'@jest/test-result': 27.0.6 '@jest/test-result': 27.0.6
'@jest/transform': 27.0.6 '@jest/transform': 27.0.6
'@jest/types': 27.5.1 '@jest/types': 27.5.1
...@@ -4846,7 +4844,6 @@ packages: ...@@ -4846,7 +4844,6 @@ packages:
jest-validate: 27.0.6 jest-validate: 27.0.6
jest-watcher: 27.0.6 jest-watcher: 27.0.6
micromatch: 4.0.4 micromatch: 4.0.4
node-notifier: 8.0.1
p-each-series: 2.2.0 p-each-series: 2.2.0
rimraf: 3.0.2 rimraf: 3.0.2
slash: 3.0.0 slash: 3.0.0
...@@ -4912,7 +4909,7 @@ packages: ...@@ -4912,7 +4909,7 @@ packages:
expect: 27.5.1 expect: 27.5.1
dev: true dev: true
/@jest/reporters/27.0.6_node-notifier@8.0.1: /@jest/reporters/27.0.6:
resolution: {integrity: sha512-TIkBt09Cb2gptji3yJXb3EE+eVltW6BjO7frO7NEfjI9vSIYoISi5R3aI3KpEDXlB1xwB+97NXIqz84qYeYsfA==} resolution: {integrity: sha512-TIkBt09Cb2gptji3yJXb3EE+eVltW6BjO7frO7NEfjI9vSIYoISi5R3aI3KpEDXlB1xwB+97NXIqz84qYeYsfA==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
peerDependencies: peerDependencies:
...@@ -4940,7 +4937,6 @@ packages: ...@@ -4940,7 +4937,6 @@ packages:
jest-resolve: 27.5.1 jest-resolve: 27.5.1
jest-util: 27.5.1 jest-util: 27.5.1
jest-worker: 27.5.1 jest-worker: 27.5.1
node-notifier: 8.0.1
slash: 3.0.0 slash: 3.0.0
source-map: 0.6.1 source-map: 0.6.1
string-length: 4.0.1 string-length: 4.0.1
...@@ -13430,10 +13426,6 @@ packages: ...@@ -13430,10 +13426,6 @@ packages:
engines: {node: '>=4.x'} engines: {node: '>=4.x'}
dev: true dev: true
/growly/1.3.0:
resolution: {integrity: sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=}
dev: true
/gzip-size/3.0.0: /gzip-size/3.0.0:
resolution: {integrity: sha512-6s8trQiK+OMzSaCSVXX+iqIcLV9tC+E73jrJrJTyS4h/AJhlxHvzFKqM1YLDJWRGgHX8uLkBeXkA0njNj39L4w==} resolution: {integrity: sha512-6s8trQiK+OMzSaCSVXX+iqIcLV9tC+E73jrJrJTyS4h/AJhlxHvzFKqM1YLDJWRGgHX8uLkBeXkA0njNj39L4w==}
engines: {node: '>=0.12.0'} engines: {node: '>=0.12.0'}
...@@ -15006,7 +14998,7 @@ packages: ...@@ -15006,7 +14998,7 @@ packages:
- supports-color - supports-color
dev: true dev: true
/jest-cli/27.0.6_node-notifier@8.0.1: /jest-cli/27.0.6:
resolution: {integrity: sha512-qUUVlGb9fdKir3RDE+B10ULI+LQrz+MCflEH2UJyoUjoHHCbxDrMxSzjQAPUMsic4SncI62ofYCcAvW6+6rhhg==} resolution: {integrity: sha512-qUUVlGb9fdKir3RDE+B10ULI+LQrz+MCflEH2UJyoUjoHHCbxDrMxSzjQAPUMsic4SncI62ofYCcAvW6+6rhhg==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
hasBin: true hasBin: true
...@@ -15016,7 +15008,7 @@ packages: ...@@ -15016,7 +15008,7 @@ packages:
node-notifier: node-notifier:
optional: true optional: true
dependencies: dependencies:
'@jest/core': 27.0.6_node-notifier@8.0.1 '@jest/core': 27.0.6
'@jest/test-result': 27.0.6 '@jest/test-result': 27.0.6
'@jest/types': 27.5.1 '@jest/types': 27.5.1
chalk: 4.1.2 chalk: 4.1.2
...@@ -15026,7 +15018,6 @@ packages: ...@@ -15026,7 +15018,6 @@ packages:
jest-config: 27.0.6 jest-config: 27.0.6
jest-util: 27.5.1 jest-util: 27.5.1
jest-validate: 27.0.6 jest-validate: 27.0.6
node-notifier: 8.0.1
prompts: 2.3.0 prompts: 2.3.0
yargs: 16.2.0 yargs: 16.2.0
transitivePeerDependencies: transitivePeerDependencies:
...@@ -15678,7 +15669,7 @@ packages: ...@@ -15678,7 +15669,7 @@ packages:
supports-color: 8.1.1 supports-color: 8.1.1
dev: true dev: true
/jest/27.0.6_node-notifier@8.0.1: /jest/27.0.6:
resolution: {integrity: sha512-EjV8aETrsD0wHl7CKMibKwQNQc3gIRBXlTikBmmHUeVMKaPFxdcUIBfoDqTSXDoGJIivAYGqCWVlzCSaVjPQsA==} resolution: {integrity: sha512-EjV8aETrsD0wHl7CKMibKwQNQc3gIRBXlTikBmmHUeVMKaPFxdcUIBfoDqTSXDoGJIivAYGqCWVlzCSaVjPQsA==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
hasBin: true hasBin: true
...@@ -15688,10 +15679,9 @@ packages: ...@@ -15688,10 +15679,9 @@ packages:
node-notifier: node-notifier:
optional: true optional: true
dependencies: dependencies:
'@jest/core': 27.0.6_node-notifier@8.0.1 '@jest/core': 27.0.6
import-local: 3.0.2 import-local: 3.0.2
jest-cli: 27.0.6_node-notifier@8.0.1 jest-cli: 27.0.6
node-notifier: 8.0.1
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
- canvas - canvas
...@@ -17616,17 +17606,6 @@ packages: ...@@ -17616,17 +17606,6 @@ packages:
resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}
dev: true dev: true
/node-notifier/8.0.1:
resolution: {integrity: sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==}
dependencies:
growly: 1.3.0
is-wsl: 2.2.0
semver: 7.3.7
shellwords: 0.1.1
uuid: 8.3.2
which: 2.0.2
dev: true
/node-plop/0.30.0: /node-plop/0.30.0:
resolution: {integrity: sha512-5w9+jWoy9OtMm3qRmHgL2z/3L5VL3RhEegKkKC4tA1IIjG3aXf8Ee/8wdgU9qXyt1yDfPWI9Tan1rHpXAp0ZnA==} resolution: {integrity: sha512-5w9+jWoy9OtMm3qRmHgL2z/3L5VL3RhEegKkKC4tA1IIjG3aXf8Ee/8wdgU9qXyt1yDfPWI9Tan1rHpXAp0ZnA==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
...@@ -21540,10 +21519,6 @@ packages: ...@@ -21540,10 +21519,6 @@ packages:
rechoir: 0.6.2 rechoir: 0.6.2
dev: true dev: true
/shellwords/0.1.1:
resolution: {integrity: sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==}
dev: true
/side-channel/1.0.4: /side-channel/1.0.4:
resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}
dependencies: dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment