jizy-packer 2.0.2 → 2.0.4

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/lib/Build.js +4 -1
  2. package/package.json +15 -1
package/lib/Build.js CHANGED
@@ -5,7 +5,7 @@ import { rollup } from 'rollup';
5
5
  import LogMe from "./LogMe.js";
6
6
  import jPackConfig from "./Config.js";
7
7
  import jPackRollup from "./Rollup.js";
8
- import { cleanBuildFolder } from '../utils.js';
8
+ import { cleanBuildFolder } from './utils.js';
9
9
 
10
10
  export default async function jPackBuild({
11
11
  target = null,
@@ -51,6 +51,9 @@ export default async function jPackBuild({
51
51
 
52
52
  if (target) {
53
53
  jPackConfig.set('buildTarget', jPackConfig.get('basePath') + '/build/' + target);
54
+ if (!fs.existsSync(jPackConfig.get('buildTarget'))) {
55
+ fs.mkdirSync(jPackConfig.get('buildTarget'), { recursive: true });
56
+ }
54
57
  } else {
55
58
  LogMe.log('Empty or create dist directory');
56
59
  const targetPath = path.join(jPackConfig.get('basePath'), 'dist');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jizy-packer",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib/*.js"
@@ -19,14 +19,28 @@
19
19
  "license": "MIT",
20
20
  "description": "CLI app to generate optimized builds.",
21
21
  "dependencies": {
22
+ "@babel/core": "^7.26.10",
23
+ "@babel/preset-env": "^7.26.9",
22
24
  "@rollup/plugin-commonjs": "^28.0.3",
23
25
  "@rollup/plugin-json": "^6.1.0",
24
26
  "@rollup/plugin-node-resolve": "^16.0.1",
25
27
  "@rollup/plugin-terser": "^0.4.4",
26
28
  "@rollup/plugin-url": "^8.0.2",
29
+ "autoprefixer": "^10.4.21",
30
+ "babel-jest": "^29.7.0",
31
+ "clean-css": "^5.3.3",
32
+ "cross-env": "^7.0.3",
33
+ "cssnano": "^7.0.6",
34
+ "jest": "^29.7.0",
35
+ "jest-environment-jsdom": "^29.7.0",
36
+ "jsdom": "^26.1.0",
37
+ "less": "^4.3.0",
38
+ "less-plugin-clean-css": "^1.6.0",
39
+ "postcss": "^8.5.3",
27
40
  "rollup": "^4.40.1",
28
41
  "rollup-plugin-copy": "^3.5.0",
29
42
  "rollup-plugin-delete": "^3.0.1",
43
+ "rollup-plugin-postcss": "^4.0.2",
30
44
  "yargs": "^17.7.2"
31
45
  }
32
46
  }