bunchee 6.9.0 → 6.9.1
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.
- package/dist/bin/cli.js +7 -3
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -856,7 +856,7 @@ async function lint$1(cwd) {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
-
var version = "6.9.
|
|
859
|
+
var version = "6.9.1";
|
|
860
860
|
|
|
861
861
|
async function writeDefaultTsconfig(tsConfigPath) {
|
|
862
862
|
await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
|
|
@@ -1123,9 +1123,13 @@ function addBuildScripts(pkgJson, cwd) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
async function prepare(cwd, options) {
|
|
1125
1125
|
const sourceFolder = path__default.default.resolve(cwd, SRC);
|
|
1126
|
+
// Create src/index.ts if src folder doesn't exist
|
|
1126
1127
|
if (!fs__default.default.existsSync(sourceFolder)) {
|
|
1127
|
-
|
|
1128
|
-
|
|
1128
|
+
await fsp__default.default.mkdir(sourceFolder, {
|
|
1129
|
+
recursive: true
|
|
1130
|
+
});
|
|
1131
|
+
const indexPath = path__default.default.join(sourceFolder, 'index.ts');
|
|
1132
|
+
await fsp__default.default.writeFile(indexPath, "export function index() {\n return 'index'\n}\n", 'utf-8');
|
|
1129
1133
|
}
|
|
1130
1134
|
let hasPackageJson = false;
|
|
1131
1135
|
const pkgJsonPath = path__default.default.join(cwd, 'package.json');
|