milkee 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +4 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -23,8 +23,8 @@
23
23
  CONFIG_PATH = path.join(CWD, CONFIG_FILE);
24
24
 
25
25
  checkCoffee = function() {
26
- var error, pkgData, pkgFile, ref, ref1;
27
- PKG_PATH(path.join(CWD, 'package.json'));
26
+ var PKG_PATH, error, pkgData, pkgFile, ref, ref1;
27
+ PKG_PATH = path.join(CWD, 'package.json');
28
28
  if (fs.existsSync(PKG_PATH)) {
29
29
  try {
30
30
  pkgFile = fs.readFileSync(PKG_PATH, 'utf-8');
@@ -48,6 +48,7 @@
48
48
  // async
49
49
  setup = async function() {
50
50
  var CONFIG_TEMPLATE, TEMPLATE_PATH, check, error, pstat, stat;
51
+ checkCoffee();
51
52
  pstat = "created";
52
53
  stat = "create";
53
54
  if (fs.existsSync(CONFIG_PATH)) {
@@ -81,6 +82,7 @@
81
82
 
82
83
  compile = async function() {
83
84
  var command, commandParts, compilerProcess, config, enabledOptons, enabledOptonsList, error, i, item, itemPath, items, len, milkee, milkeeOptions, options, otherOptionStrings, summary, targetDir, toContinue;
85
+ checkCoffee();
84
86
  if (!fs.existsSync(CONFIG_PATH)) {
85
87
  consola.error(`\`${CONFIG_FILE}\` not found in this directory: ${CWD}`);
86
88
  consola.info('Please run `milkee --setup` to create a configuration file.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "milkee",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "A simple CoffeeScript build tool with coffee.config.js",
5
5
  "main": "dist/main.js",
6
6
  "bin": {