@jayfong/x-server 1.26.8 → 1.26.9

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.26.9](https://github.com/jfWorks/x-server/compare/v1.26.8...v1.26.9) (2022-05-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * initTasks ([3e1984d](https://github.com/jfWorks/x-server/commit/3e1984da3ad0cb99b858f88e211c68c8a6eab8c1))
11
+
5
12
  ### [1.26.8](https://github.com/jfWorks/x-server/compare/v1.26.7...v1.26.8) (2022-05-07)
6
13
 
7
14
 
@@ -45,12 +45,12 @@ class TemplateUtil {
45
45
 
46
46
 
47
47
  static async initTasks(cwd) {
48
- const tasksDir = _path.default.join(cwd, 'tasks');
48
+ const tasksDir = _path.default.join(cwd, 'src/tasks');
49
49
 
50
50
  const tasksIndexFile = _path.default.join(tasksDir, 'index.ts');
51
51
 
52
52
  if (!(await _fsExtra.default.pathExists(tasksIndexFile))) {
53
- await _fsExtra.default.writeFile(tasksIndexFile, (0, _vtils.dedent)`
53
+ await _fsExtra.default.outputFile(tasksIndexFile, (0, _vtils.dedent)`
54
54
  // @index(['./**/*.ts', '!**/*.test.ts', '!**/_*'], f => \`export * from '\${f.path}'\`)
55
55
  // @endindex
56
56
  `);
@@ -32,11 +32,11 @@ export class TemplateUtil {
32
32
 
33
33
 
34
34
  static async initTasks(cwd) {
35
- const tasksDir = path.join(cwd, 'tasks');
35
+ const tasksDir = path.join(cwd, 'src/tasks');
36
36
  const tasksIndexFile = path.join(tasksDir, 'index.ts');
37
37
 
38
38
  if (!(await fs.pathExists(tasksIndexFile))) {
39
- await fs.writeFile(tasksIndexFile, dedent`
39
+ await fs.outputFile(tasksIndexFile, dedent`
40
40
  // @index(['./**/*.ts', '!**/*.test.ts', '!**/_*'], f => \`export * from '\${f.path}'\`)
41
41
  // @endindex
42
42
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "1.26.8",
3
+ "version": "1.26.9",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",