@tanstack/cta-engine 0.10.0-alpha.30 → 0.10.0-alpha.31

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,4 +1,4 @@
1
- import { resolve } from 'node:path';
1
+ import { resolve, sep } from 'node:path';
2
2
  import { render } from 'ejs';
3
3
  import { format } from 'prettier';
4
4
  import { CODE_ROUTER, FILE_ROUTER } from './constants.js';
@@ -7,9 +7,9 @@ import { getPackageManagerInstallCommand, getPackageManagerScriptCommand, } from
7
7
  import { relativePath } from './file-helpers.js';
8
8
  function convertDotFilesAndPaths(path) {
9
9
  return path
10
- .split('/')
10
+ .split(sep)
11
11
  .map((segment) => segment.replace(/^_dot_/, '.'))
12
- .join('/');
12
+ .join(sep);
13
13
  }
14
14
  export function createTemplateFile(environment, options) {
15
15
  function getPackageManagerAddScript(packageName, isDev = false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-engine",
3
- "version": "0.10.0-alpha.30",
3
+ "version": "0.10.0-alpha.31",
4
4
  "description": "Tanstack Application Builder Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,4 +1,4 @@
1
- import { resolve } from 'node:path'
1
+ import { resolve, sep } from 'node:path'
2
2
  import { render } from 'ejs'
3
3
  import { format } from 'prettier'
4
4
 
@@ -14,9 +14,9 @@ import type { AddOn, Environment, Options } from './types.js'
14
14
 
15
15
  function convertDotFilesAndPaths(path: string) {
16
16
  return path
17
- .split('/')
17
+ .split(sep)
18
18
  .map((segment) => segment.replace(/^_dot_/, '.'))
19
- .join('/')
19
+ .join(sep)
20
20
  }
21
21
 
22
22
  export function createTemplateFile(environment: Environment, options: Options) {