react-lib-tools 0.0.53 → 0.0.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lib-tools",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "type": "module",
5
5
  "author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
6
6
  "contributors": [
@@ -21,21 +21,6 @@
21
21
  "styles.css",
22
22
  "types.ts"
23
23
  ],
24
- "scripts": {
25
- "dev": "vite",
26
- "build": "pnpm run build:lib && pnpm run build:docs",
27
- "build:docs": "TARGET=docs vite build",
28
- "build:lib": "TARGET=lib vite build",
29
- "lint": "eslint .",
30
- "prerelease": "rm -rf dist && pnpm run build:lib",
31
- "prettier": "prettier --write \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
32
- "prettier:ci": "prettier --check \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
33
- "preview": "vite preview",
34
- "test": "vitest",
35
- "test:ci": "vitest run",
36
- "test:debug": "vitest --inspect-brk=127.0.0.1:3000 --no-file-parallelism",
37
- "tsc": "tsc -b"
38
- },
39
24
  "lint-staged": {
40
25
  "**/*": "prettier --write --ignore-unknown"
41
26
  },
@@ -116,5 +101,20 @@
116
101
  "vite-plugin-svgr": "^4.3.0",
117
102
  "vitest": "^3.2.4",
118
103
  "vitest-fail-on-console": "^0.10.1"
104
+ },
105
+ "scripts": {
106
+ "dev": "vite",
107
+ "build": "pnpm run build:lib && pnpm run build:docs",
108
+ "build:docs": "TARGET=docs vite build",
109
+ "build:lib": "TARGET=lib vite build",
110
+ "lint": "eslint .",
111
+ "prerelease": "rm -rf dist && pnpm run build:lib",
112
+ "prettier": "prettier --write \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
113
+ "prettier:ci": "prettier --check \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
114
+ "preview": "vite preview",
115
+ "test": "vitest",
116
+ "test:ci": "vitest run",
117
+ "test:debug": "vitest --inspect-brk=127.0.0.1:3000 --no-file-parallelism",
118
+ "tsc": "tsc -b"
119
119
  }
120
- }
120
+ }
@@ -29,8 +29,8 @@ export async function compileComponent({
29
29
 
30
30
  const component = parsed[0];
31
31
 
32
- // Convert to local paths
33
- component.filePath = relative(cwd(), filePath);
32
+ // Convert to local paths. Replacement normalizes path on Windows
33
+ component.filePath = relative(cwd(), filePath).replace("\\", "/");
34
34
 
35
35
  // Filter inherited HTML attributes
36
36
  for (const key in component.props) {