@qlover/create-app 0.3.8 → 0.4.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.
- package/CHANGELOG.md +8 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @qlover/create-app
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
#### 🐞 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **create-app:** update root path resolution to use dirname for compatibility with ES modules ([d091f0b](https://github.com/qlover/fe-base/commit/d091f0bc5ed17a6d16a7bedcac5416a41cba41d2)) ([#426](https://github.com/qlover/fe-base/pull/426))
|
|
10
|
+
|
|
3
11
|
## 0.3.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { dirname, join } from 'path';
|
|
3
3
|
import { promises, existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
|
|
4
4
|
import { Command } from 'commander';
|
|
5
5
|
import { FeScriptContext } from '@qlover/scripts-context';
|
|
@@ -2378,7 +2378,7 @@ var Generator = class {
|
|
|
2378
2378
|
|
|
2379
2379
|
// package.json
|
|
2380
2380
|
var package_default = {
|
|
2381
|
-
version: "0.
|
|
2381
|
+
version: "0.4.0",
|
|
2382
2382
|
description: "Create a new app with a single command"};
|
|
2383
2383
|
function programArgs() {
|
|
2384
2384
|
const program = new Command();
|
|
@@ -2391,7 +2391,7 @@ function programArgs() {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
async function main() {
|
|
2393
2393
|
const { dryRun, verbose, ...commandOptions } = programArgs();
|
|
2394
|
-
const rootPath = fileURLToPath(import.meta.url);
|
|
2394
|
+
const rootPath = dirname(fileURLToPath(import.meta.url));
|
|
2395
2395
|
const templateRootPath = join(rootPath, "../templates");
|
|
2396
2396
|
const configsRootPath = join(rootPath, "../configs");
|
|
2397
2397
|
if (!existsSync(templateRootPath)) {
|