Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dev-watch

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-watch - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

17

lib/modules/typescript.js
var watch = require('node-watch');
function initConfig(config) {
config.declarations = config.declarations !== undefined ? config.declarations : false;
config.configFile = config.configFile ? config.configFile : 'package.json';

@@ -11,2 +12,11 @@ config.tempFolder = config.tempFolder ? config.tempFolder : 'dist';

function createCommand(config) {
var cmd = 'tsc --p "' + config.configFile + '"';
if(config.declarations)
cmd += ' --declaration';
return cmd;
}
module.exports = function(config) {

@@ -17,3 +27,3 @@ return {

config.exec('tsc --p ' + config.configFile, () => {
config.exec(createCommand(config), () => {
if(!config.browserify)

@@ -32,3 +42,3 @@ return;

config.exec('tsc --p ' + config.configFile + ' --watch');
config.exec(createCommand(config) + ' --watch');

@@ -62,5 +72,6 @@ if(!config.browserify)

dest: 'public/react.js',
browserify: true
browserify: true,
declarations : false
}
}
}

2

package.json
{
"name": "dev-watch",
"version": "0.1.2",
"version": "0.1.3",
"description": "Watch files and compile/transform them for development purpose",

@@ -5,0 +5,0 @@ "main": "./lib/dev-watch",

@@ -52,1 +52,8 @@ # dev-watch

```
## Short road-map
* Add tar/zlib module
* Add 'custom' module
* Add 'text replacer' module
* Add 'copier' module
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc