@batijs/cli 0.0.217-beta.1 → 0.0.218

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/dist/index.js +5 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ async function importTransformer(p) {
142
142
  }
143
143
  function importToPotentialTargets(imp) {
144
144
  let subject = imp;
145
- const ext = path.posix.extname(imp);
145
+ const ext = path.extname(imp);
146
146
  const targets = [];
147
147
  if (ext.match(/^\.[jt]sx?$/)) {
148
148
  subject = subject.replace(/^\.[jt]sx?$/, "");
@@ -164,7 +164,7 @@ async function main(options, meta) {
164
164
  function updateAllImports(target, imports) {
165
165
  if (!imports) return;
166
166
  for (const imp of imports.values()) {
167
- const importTarget = path.posix.resolve(path.posix.dirname(target), imp);
167
+ const importTarget = path.resolve(path.dirname(target), imp);
168
168
  const importTargets = importToPotentialTargets(importTarget);
169
169
  for (const imp2 of importTargets) {
170
170
  allImports.add(imp2);
@@ -174,7 +174,7 @@ async function main(options, meta) {
174
174
  async function triggerPendingTargets(target, imports) {
175
175
  if (!imports) return;
176
176
  for (const imp of imports.values()) {
177
- const importTarget = path.posix.resolve(path.posix.dirname(target), imp);
177
+ const importTarget = path.resolve(path.dirname(target), imp);
178
178
  const importTargets = importToPotentialTargets(importTarget);
179
179
  for (const imp2 of importTargets) {
180
180
  if (includeIfImported.has(imp2)) {
@@ -189,7 +189,7 @@ async function main(options, meta) {
189
189
  for (const source of sources) {
190
190
  for await (const p of walk(source)) {
191
191
  const target = toDist(p, source, options.dist);
192
- const targetAbsolute = path.resolve(target);
192
+ const targetAbsolute = path.isAbsolute(target) ? target : path.resolve(target);
193
193
  const parsed = path.parse(p);
194
194
  if (parsed.name.match(reIgnoreFile)) {
195
195
  continue;
@@ -1613,7 +1613,7 @@ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
1613
1613
  // package.json
1614
1614
  var package_default = {
1615
1615
  name: "@batijs/cli",
1616
- version: "0.0.217-beta.1",
1616
+ version: "0.0.218",
1617
1617
  type: "module",
1618
1618
  scripts: {
1619
1619
  "check-types": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.217-beta.1",
3
+ "version": "0.0.218",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -22,12 +22,12 @@
22
22
  "unplugin-purge-polyfills": "^0.0.4",
23
23
  "vite": "^5.3.3",
24
24
  "which-pm-runs": "^1.1.0",
25
- "@batijs/build": "0.0.217-beta.1",
26
- "@batijs/compile": "0.0.217-beta.1"
25
+ "@batijs/compile": "0.0.218",
26
+ "@batijs/build": "0.0.218"
27
27
  },
28
28
  "dependencies": {
29
- "@batijs/core": "0.0.217-beta.1",
30
- "@batijs/features": "0.0.217-beta.1"
29
+ "@batijs/core": "0.0.218",
30
+ "@batijs/features": "0.0.218"
31
31
  },
32
32
  "bin": "./dist/index.js",
33
33
  "exports": {