Socket
Socket
Sign inDemoInstall

esbuild-dev

Package Overview
Dependencies
75
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.9.0

6

package.json
{
"name": "esbuild-dev",
"version": "0.8.0",
"version": "0.9.0",
"author": "Harry Brundage",

@@ -26,3 +26,5 @@ "license": "MIT",

"build": "rm -rf pkg && tsc && chmod +x pkg/esbuild-dev.bin.js",
"prepublishOnly": "yarn run build",
"watch": "tsc -w",
"typecheck": "tsc --noEmit",
"lint": "yarn run lint:prettier && yarn run lint:eslint",

@@ -36,3 +38,3 @@ "lint:prettier": "node --max-old-space-size=4096 node_modules/.bin/prettier --check \"src/**/*.{js,ts,tsx}\"",

"chokidar": "^3.4.3",
"esbuild": "^0.13.4",
"esbuild": "^0.13.14",
"find-root": "^1.1.0",

@@ -39,0 +41,0 @@ "find-yarn-workspace-root": "^2.0.0",

@@ -125,3 +125,3 @@ "use strict";

target: ["node14"],
sourcemap: true,
sourcemap: "inline",
...config.esbuild,

@@ -128,0 +128,0 @@ });

@@ -60,3 +60,3 @@ "use strict";

if (line.trim() === "rs") {
utils_1.log.info("Restart command recieved, restarting...");
utils_1.log.info("Restart command received, restarting...");
void project.invalidateBuildSetAndReload();

@@ -93,3 +93,3 @@ }

project.watcher?.add(filename);
return project.compiler.fileGroup(filename);
return await project.compiler.fileGroup(filename);
}

@@ -118,3 +118,3 @@ catch (error) {

const childProcessArgs = () => {
return ["-r", path_1.default.join(__dirname, "child-process-registration.js")];
return ["-r", path_1.default.join(__dirname, "child-process-registration.js"), "--enable-source-maps"];
};

@@ -124,2 +124,3 @@ const esbuildDev = async (options) => {

const workDir = await fs_1.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), "esbuild-dev"));
utils_1.log.debug(`starting esbuild-dev for workspace root ${workspaceRoot} and workdir ${workDir}`);
let serverSocketPath;

@@ -144,4 +145,9 @@ if (os_1.default.platform() === "win32") {

process.on("SIGINT", () => {
utils_1.log.debug(`process ${process.pid} got SIGINT`);
project.shutdown(0);
});
process.on("SIGTERM", () => {
utils_1.log.debug(`process ${process.pid} got SIGTERM`);
project.shutdown(0);
});
project.supervisor.process.on("exit", (code) => {

@@ -148,0 +154,0 @@ utils_1.log.debug(`child process exited with code ${code}, ${options.supervise ? "not exiting because supervise mode" : "exiting..."}`);

@@ -10,3 +10,3 @@ "use strict";

const path_1 = __importDefault(require("path"));
const logPrefix = "[esbuild-dev]";
const logPrefix = `[esbuild-dev pid=${process.pid}]`;
exports.log = {

@@ -27,14 +27,16 @@ debug: (...args) => process.env["ESBUILD_DEV_DEBUG"] && console.warn(logPrefix, ...args),

const location = path_1.default.join(root, "esbuild-dev.js");
let value = {};
const value = { ignore: [], extensions: [".ts", ".tsx", ".jsx"] };
try {
await fs_1.promises.access(location);
value = require(location);
exports.log.debug(`Loaded project config from ${location}`);
}
catch (error) {
exports.log.debug(`Error loading project config from ${location}: ${error.message}`);
exports.log.debug(`Not loading project config from ${location}, error encountered: ${error.message}`);
return value;
}
return lodash_1.defaults({}, value, { ignore: [], extensions: [".ts", ".tsx", ".jsx"] });
// eslint-disable-next-line @typescript-eslint/no-var-requires
const required = require(location);
exports.log.debug(`Loaded project config from ${location}`);
return lodash_1.defaults(required, value);
};
exports.projectConfig = projectConfig;
//# sourceMappingURL=utils.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc