@tmbr/bundler 1.5.1 → 1.5.2
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.
- package/cli.js +2 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const esbuild = require('esbuild');
|
|
3
|
+
const fs = require('fs');
|
|
3
4
|
const path = require('path');
|
|
4
5
|
const exec = require('child_process').execSync;
|
|
5
6
|
const chalk = require('chalk');
|
|
@@ -42,7 +43,7 @@ function entryPoints(suffix = '') {
|
|
|
42
43
|
});
|
|
43
44
|
|
|
44
45
|
return entries.reduce((result, [name, path]) => {
|
|
45
|
-
result[`${name}${suffix}`] = path;
|
|
46
|
+
if (fs.existsSync(path)) result[`${name}${suffix}`] = path;
|
|
46
47
|
return result;
|
|
47
48
|
}, {});
|
|
48
49
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmbr/bundler",
|
|
3
3
|
"author": "TMBR (https://wearetmbr.com/)",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/TMBR/tmbr-bundler",
|
|
7
7
|
"description": "WordPress development toolkit built on esbuild and browser-sync",
|