@modern-js/utils
Advanced tools
Comparing version 0.0.0-canary-202111382413 to 0.0.0-compat-202112071120
# @modern-js/utils | ||
## 0.0.0-canary-202111382413 | ||
### Patch Changes | ||
- fda2d7f0: support server runtime | ||
## 1.1.2 | ||
@@ -10,0 +4,0 @@ |
@@ -121,6 +121,2 @@ /** | ||
}, | ||
'@modern-js/plugin-server': { | ||
cli: '@modern-js/plugin-server/cli', | ||
server: '@modern-js/plugin-server/server' | ||
}, | ||
'@modern-js/plugin-micro-frontend': { | ||
@@ -127,0 +123,0 @@ cli: '@modern-js/plugin-micro-frontend/cli' |
@@ -11,3 +11,3 @@ import * as path from 'path'; | ||
let ready = false; | ||
const watcher = chokidar.watch(`${watchDir}/**/*.{js,jsx,ts,tsx}`, { | ||
const watcher = chokidar.watch(watchDir, { | ||
ignored | ||
@@ -14,0 +14,0 @@ }); |
@@ -139,6 +139,2 @@ "use strict"; | ||
}, | ||
'@modern-js/plugin-server': { | ||
cli: '@modern-js/plugin-server/cli', | ||
server: '@modern-js/plugin-server/server' | ||
}, | ||
'@modern-js/plugin-micro-frontend': { | ||
@@ -145,0 +141,0 @@ cli: '@modern-js/plugin-micro-frontend/cli' |
@@ -27,3 +27,3 @@ "use strict"; | ||
let ready = false; | ||
const watcher = chokidar.watch(`${watchDir}/**/*.{js,jsx,ts,tsx}`, { | ||
const watcher = chokidar.watch(watchDir, { | ||
ignored | ||
@@ -30,0 +30,0 @@ }); |
@@ -123,6 +123,2 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
}, | ||
'@modern-js/plugin-server': { | ||
cli: '@modern-js/plugin-server/cli', | ||
server: '@modern-js/plugin-server/server' | ||
}, | ||
'@modern-js/plugin-micro-frontend': { | ||
@@ -129,0 +125,0 @@ cli: '@modern-js/plugin-micro-frontend/cli' |
@@ -18,3 +18,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
var ready = false; | ||
var watcher = chokidar.watch("".concat(watchDir, "/**/*.{js,jsx,ts,tsx}"), { | ||
var watcher = chokidar.watch(watchDir, { | ||
ignored: ignored | ||
@@ -21,0 +21,0 @@ }); |
@@ -7,3 +7,3 @@ export declare type WatchChangeTypeValueT = 'add' | 'unlink' | 'change'; | ||
}) => void | Promise<void>; | ||
export declare const watch: (watchDir: string, runTask: RunTaskType, ignored?: string[]) => import("chokidar").FSWatcher; | ||
export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: string[]) => import("chokidar").FSWatcher; | ||
export {}; |
@@ -5,3 +5,4 @@ /** @type {import('@modern-js/module-tools').UserConfig} */ | ||
disableSourceMap: true, | ||
// path: '../../../../../../work/jupiter-next-demo/node_modules/@modern-js/utils/dist', | ||
}, | ||
}; |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.0.0-canary-202111382413", | ||
"version": "0.0.0-compat-202112071120", | ||
"jsnext:source": "./src/index.ts", | ||
@@ -17,0 +17,0 @@ "types": "./dist/types/index.d.ts", |
@@ -94,6 +94,2 @@ /** | ||
'@modern-js/plugin-server-build': { cli: '@modern-js/plugin-server-build' }, | ||
'@modern-js/plugin-server': { | ||
cli: '@modern-js/plugin-server/cli', | ||
server: '@modern-js/plugin-server/server', | ||
}, | ||
'@modern-js/plugin-micro-frontend': { | ||
@@ -100,0 +96,0 @@ cli: '@modern-js/plugin-micro-frontend/cli', |
@@ -23,3 +23,3 @@ import * as path from 'path'; | ||
export const watch = ( | ||
watchDir: string, | ||
watchDir: string | string[], | ||
runTask: RunTaskType, | ||
@@ -29,3 +29,3 @@ ignored: string[] = [], | ||
let ready = false; | ||
const watcher = chokidar.watch(`${watchDir}/**/*.{js,jsx,ts,tsx}`, { | ||
const watcher = chokidar.watch(watchDir, { | ||
ignored, | ||
@@ -32,0 +32,0 @@ }); |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
266842
7023
1
4