tyranoscript-packager 0.3.3 → 0.3.5

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,19 +1,12 @@
1
1
  {
2
- "name": "Node.js & TypeScript",
3
- "image": "mcr.microsoft.com/devcontainers/typescript-node:18-bullseye"
4
-
5
- // Features to add to the dev container. More info: https://containers.dev/features.
6
- // "features": {},
7
-
8
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
9
- // "forwardPorts": [],
10
-
11
- // Use 'postCreateCommand' to run commands after the container is created.
12
- // "postCreateCommand": "yarn install",
13
-
14
- // Configure tool-specific properties.
15
- // "customizations": {},
16
-
17
- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
18
- // "remoteUser": "root"
2
+ "name": "Node.js & TypeScript",
3
+ "image": "mcr.microsoft.com/devcontainers/typescript-node:22",
4
+ "customizations": {
5
+ "vscode": {
6
+ "extensions": [
7
+ "EditorConfig.EditorConfig",
8
+ "dbaeumer.vscode-eslint"
9
+ ]
10
+ }
11
+ }
19
12
  }
package/lib/Logger.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Logger = exports.Level = void 0;
27
37
  const winston_1 = __importStar(require("winston"));
@@ -31,7 +41,7 @@ var Level;
31
41
  Level["INFO"] = "info";
32
42
  Level["WARN"] = "warn";
33
43
  Level["ERROR"] = "error";
34
- })(Level = exports.Level || (exports.Level = {}));
44
+ })(Level || (exports.Level = Level = {}));
35
45
  class Logger {
36
46
  constructor() { }
37
47
  static getDefaultLevel() {
@@ -8,5 +8,5 @@ var NwjsManifestPosition;
8
8
  (function (NwjsManifestPosition) {
9
9
  NwjsManifestPosition["mouse"] = "mouse";
10
10
  NwjsManifestPosition["center"] = "center";
11
- })(NwjsManifestPosition = exports.NwjsManifestPosition || (exports.NwjsManifestPosition = {}));
11
+ })(NwjsManifestPosition || (exports.NwjsManifestPosition = NwjsManifestPosition = {}));
12
12
  //# sourceMappingURL=NwjsManifest.js.map
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -29,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.WindowsTyranoPackager = exports.GeneralTyranoPackager = exports.Platform = exports.ValidateResult = void 0;
30
40
  const fs_1 = __importDefault(require("fs"));
31
41
  const path_1 = __importDefault(require("path"));
32
- const tar_1 = __importDefault(require("tar"));
42
+ const tar_1 = require("tar");
33
43
  const archiver_1 = __importDefault(require("archiver"));
34
44
  const fsUtil = __importStar(require("./fsUtil"));
35
45
  const NwjsManifest_1 = require("./NwjsManifest");
@@ -49,7 +59,7 @@ var Platform;
49
59
  Platform["Windows"] = "win";
50
60
  Platform["macOS"] = "mac";
51
61
  Platform["Unknown"] = "unknown";
52
- })(Platform = exports.Platform || (exports.Platform = {}));
62
+ })(Platform || (exports.Platform = Platform = {}));
53
63
  (function (Platform) {
54
64
  function valueOf(str) {
55
65
  switch (str) {
@@ -62,7 +72,7 @@ var Platform;
62
72
  }
63
73
  }
64
74
  Platform.valueOf = valueOf;
65
- })(Platform = exports.Platform || (exports.Platform = {}));
75
+ })(Platform || (exports.Platform = Platform = {}));
66
76
  class GeneralTyranoPackager {
67
77
  constructor() {
68
78
  this.nodeModulesTarPath = path_1.default.join(__dirname, "../resources/win/node_modules.tar.gz");
@@ -161,7 +171,7 @@ class GeneralTyranoPackager {
161
171
  * @param {archiver.Archiver} archive
162
172
  */
163
173
  appendTarAllContents(nodeModulesTarPath, archive) {
164
- return tar_1.default.extract({
174
+ return (0, tar_1.extract)({
165
175
  file: nodeModulesTarPath,
166
176
  onentry: (entry) => {
167
177
  if (entry.type === "File") {
package/lib/fsUtil.js CHANGED
@@ -3,10 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.copy = exports.ensureDir = exports.canNotRead = exports.isNotExist = void 0;
6
+ exports.isNotExist = isNotExist;
7
+ exports.canNotRead = canNotRead;
8
+ exports.ensureDir = ensureDir;
9
+ exports.copy = copy;
7
10
  const fs_1 = __importDefault(require("fs"));
8
11
  const ncp_1 = __importDefault(require("ncp"));
9
- const mkdirp_1 = __importDefault(require("mkdirp"));
12
+ const mkdirp_1 = require("mkdirp");
10
13
  function isNotExist(filePath) {
11
14
  try {
12
15
  fs_1.default.statSync(filePath);
@@ -17,7 +20,6 @@ function isNotExist(filePath) {
17
20
  }
18
21
  return false;
19
22
  }
20
- exports.isNotExist = isNotExist;
21
23
  ;
22
24
  function canNotRead(filePath) {
23
25
  try {
@@ -28,12 +30,10 @@ function canNotRead(filePath) {
28
30
  return true;
29
31
  }
30
32
  }
31
- exports.canNotRead = canNotRead;
32
33
  ;
33
34
  function ensureDir(dir) {
34
- return (0, mkdirp_1.default)(dir);
35
+ return (0, mkdirp_1.mkdirp)(dir);
35
36
  }
36
- exports.ensureDir = ensureDir;
37
37
  function copy(src, dest, options) {
38
38
  return new Promise(resolve => {
39
39
  (0, ncp_1.default)(src, dest, options, (err) => {
@@ -43,5 +43,4 @@ function copy(src, dest, options) {
43
43
  });
44
44
  });
45
45
  }
46
- exports.copy = copy;
47
46
  //# sourceMappingURL=fsUtil.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tyranoscript-packager",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "This is a CLI tool for packaging Typescript apps.",
5
5
  "bin": {
6
6
  "tyrano": "lib/index.js"
@@ -30,24 +30,23 @@
30
30
  },
31
31
  "homepage": "https://github.com/fuji44/tyranoscript-packager#readme",
32
32
  "dependencies": {
33
- "archiver": "^5.3.1",
34
- "commander": "^9.4.1",
35
- "mkdirp": "^1.0.4",
33
+ "archiver": "^7.0.1",
34
+ "commander": "^14.0.0",
35
+ "mkdirp": "^3.0.1",
36
36
  "ncp": "^2.0.0",
37
- "tar": "^6.1.12",
38
- "winston": "^3.8.2"
37
+ "tar": "^7.4.3",
38
+ "winston": "^3.17.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/archiver": "^5.3.1",
42
- "@types/jest": "^29.2.3",
43
- "@types/mkdirp": "^1.0.2",
44
- "@types/ncp": "^2.0.5",
45
- "@types/node": "^18.11.9",
46
- "@types/tar": "^6.1.3",
47
- "jest": "^29.3.1",
48
- "rimraf": "^3.0.2",
49
- "tmp": "^0.2.1",
50
- "ts-jest": "^29.0.3",
51
- "typescript": "^4.9.3"
41
+ "@types/archiver": "^6.0.3",
42
+ "@types/jest": "^30.0.0",
43
+ "@types/ncp": "^2.0.8",
44
+ "@types/node": "^24.0.6",
45
+ "@types/tar": "^6.1.13",
46
+ "jest": "^30.0.3",
47
+ "rimraf": "^6.0.1",
48
+ "tmp": "^0.2.3",
49
+ "ts-jest": "^29.4.0",
50
+ "typescript": "^5.8.3"
52
51
  }
53
52
  }