at-builder 1.0.6 → 1.0.9

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.
@@ -17,7 +17,7 @@ ${clc.green.underline(`at-builder (version: ${version})`)}
17
17
 
18
18
  ${clc.white.bold("A simple command to run adobe target builder.")}
19
19
 
20
- $ at-builder
20
+ $ atb
21
21
 
22
22
  Available Commands:
23
23
 
@@ -26,7 +26,7 @@ ${clc.blue.underline.bold("build")} Create build
26
26
 
27
27
  Example:
28
28
 
29
- at-builder -c new
30
- at-builder -c
29
+ atb -c new
30
+ atb -c
31
31
  `;
32
32
  exports.getHelpInfo = getHelpInfo;
package/bin/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-builder",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "main": "bin/index.js",
5
5
  "bin": {
6
6
  "atb": "bin/index.js"
@@ -18,7 +18,8 @@
18
18
  "url": "https://pscode.lioncloud.net/upesenga"
19
19
  },
20
20
  "license": "MIT",
21
- "devDependencies": {
21
+ "devDependencies": {},
22
+ "dependencies": {
22
23
  "@babel/preset-react": "^7.18.6",
23
24
  "@types/node": "^17.0.29",
24
25
  "babel-loader": "^8.2.5",
@@ -30,9 +31,7 @@
30
31
  "postcss-preset-env": "^7.7.2",
31
32
  "sass": "^1.53.0",
32
33
  "typescript": "^4.6.3",
33
- "webpack-cli": "^4.9.2"
34
- },
35
- "dependencies": {
34
+ "webpack-cli": "^4.9.2",
36
35
  "@babel/eslint-parser": "^7.18.9",
37
36
  "@babel/plugin-proposal-class-properties": "^7.18.6",
38
37
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
package/webpack.config.js CHANGED
@@ -107,7 +107,7 @@ files.forEach((file) => {
107
107
  }
108
108
  var newPath = `${distFolderPath}/build`;
109
109
  // Replace path with absolute path before making a key of the entries object
110
- entries[newPath.replace(__dirname, "")] = file;
110
+ entries[newPath.replace(executionPath, "")] = file;
111
111
  });
112
112
 
113
113
  console.log("++++ENTRIES++++", entries);
@@ -120,25 +120,6 @@ const plugins = [
120
120
  outputReport: true,
121
121
  fix: true
122
122
  })
123
- // new WrapperPlugin({
124
- // test: /\.js$/,
125
- // header: function (_, args) {
126
- // //Handle target issue for reloading the styles.
127
- // let _uniqueTestId = `ddoTest_${args.hash}`;
128
- // args._uniqueTestId = _uniqueTestId;
129
- // return `(function(){
130
- // if(!window.${_uniqueTestId}){
131
- // //# sourceURL=${_uniqueTestId}.js
132
- // `;
133
- // },
134
- // footer: function (_, args) {
135
- // return `\n
136
- // window.${args._uniqueTestId} = true;
137
- // }
138
- // })();`
139
- // },
140
- // afterOptimization: true,
141
- // })
142
123
  ];
143
124
 
144
125
  if (isProdMode) {
@@ -163,7 +144,7 @@ module.exports = {
163
144
  ...entries
164
145
  },
165
146
  output: {
166
- path: __dirname,
147
+ path: executionPath,
167
148
  filename: '[name].js'
168
149
  },
169
150
  module: {
File without changes
package/bin/getVersion.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVersion = void 0;
4
- const fs = require("fs");
5
- const Path = require("path");
6
- const getVersion = () => {
7
- const packageJSONPath = Path.resolve(__dirname, "../package.json");
8
- const content = fs.readFileSync(packageJSONPath, { encoding: "utf8" });
9
- const config = JSON.parse(content);
10
- return config.version;
11
- };
12
- exports.getVersion = getVersion;