@kezh/my-custom-js-converter 0.0.2 → 0.0.3

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.
@@ -1,5 +1,5 @@
1
- declare const _default: Config.MainConfig;
2
- export default _default;
1
+ declare const defConfig: Config.MainConfig;
2
+ export default defConfig;
3
3
  export declare namespace Config {
4
4
  interface MainConfig {
5
5
  encode: EncodeConfig;
@@ -1,22 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Config = void 0;
4
- exports.default = {
4
+ console.log(__dirname);
5
+ const defConfig = {
5
6
  encode: {
6
7
  file: "index.js",
7
8
  output: "coded.js",
8
9
  entry: "customEvent",
9
- ignoreMod: ["commonUtil"]
10
+ ignoreMod: ["commonUtil"],
10
11
  },
11
12
  decode: {
12
13
  file: "coded.js",
13
14
  output: "decoded.js",
14
- mount: "customEvent"
15
+ mount: "customEvent",
15
16
  },
16
17
  baseDir: "",
17
18
  target: [""],
18
- customConfig: "config.json"
19
+ customConfig: "config.json",
19
20
  };
21
+ exports.default = defConfig;
20
22
  var Config;
21
23
  (function (Config) {
22
24
  class Mod {
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@kezh/my-custom-js-converter",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "自代码转换器",
5
5
  "main": "index.js",
6
6
  "bin": {
7
+ "config": "core/config/index.js",
7
8
  "encode": "core/encode.js",
8
9
  "decode": "core/decode.js"
9
10
  },