@yao-pkg/pkg 6.8.0 → 6.10.0

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-es5/sea.js +1 -2
  2. package/package.json +2 -52
package/lib-es5/sea.js CHANGED
@@ -213,8 +213,7 @@ async function bake(nodePath, target, blobPath) {
213
213
  const outPath = (0, path_1.resolve)(process.cwd(), target.output);
214
214
  log_1.log.info(`Creating executable for ${target.nodeRange}-${target.platform}-${target.arch}....`);
215
215
  if (!(await exists((0, path_1.dirname)(outPath)))) {
216
- log_1.log.error(`Output directory "${(0, path_1.dirname)(outPath)}" does not exist`);
217
- return;
216
+ await (0, promises_1.mkdir)((0, path_1.dirname)(outPath), { recursive: true });
218
217
  }
219
218
  // check if executable_path exists
220
219
  if (await exists(outPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg",
3
- "version": "6.8.0",
3
+ "version": "6.10.0",
4
4
  "description": "Package your Node.js project into an executable",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "@babel/generator": "^7.23.0",
26
26
  "@babel/parser": "^7.23.0",
27
27
  "@babel/types": "^7.23.0",
28
- "@yao-pkg/pkg-fetch": "3.5.28",
28
+ "@yao-pkg/pkg-fetch": "3.5.30",
29
29
  "into-stream": "^6.0.0",
30
30
  "minimist": "^1.2.6",
31
31
  "multistream": "^4.1.0",
@@ -83,56 +83,6 @@
83
83
  "test:host": "node test/test.js host only-npm",
84
84
  "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it"
85
85
  },
86
- "release-it": {
87
- "github": {
88
- "release": true
89
- },
90
- "git": {
91
- "tagName": "v${version}"
92
- },
93
- "hooks": {
94
- "before:init": [
95
- "yarn lint"
96
- ]
97
- },
98
- "npm": {
99
- "publish": true
100
- },
101
- "plugins": {
102
- "@release-it/conventional-changelog": {
103
- "infile": "CHANGELOG.md",
104
- "preset": {
105
- "name": "conventionalcommits",
106
- "types": [
107
- {
108
- "type": "feat",
109
- "section": "Features"
110
- },
111
- {
112
- "type": "fix",
113
- "section": "Bug Fixes"
114
- },
115
- {
116
- "type": "test",
117
- "section": "Test added"
118
- },
119
- {
120
- "type": "refactor",
121
- "section": "Code refactoring"
122
- },
123
- {
124
- "type": "chore",
125
- "section": "Chores"
126
- },
127
- {
128
- "type": "docs",
129
- "section": "Documentation"
130
- }
131
- ]
132
- }
133
- }
134
- }
135
- },
136
86
  "simple-git-hooks": {
137
87
  "pre-commit": "npx lint-staged"
138
88
  },