Comparing version 0.11.0 to 0.11.1
@@ -13,2 +13,6 @@ # Changelog | ||
## [0.11.1](https://github.com/carbon-design-system/sveld/releases/tag/v0.11.1) - 2021-12-31 | ||
- replace backslashes with forward slashes in COMPONENT_API.json `filePath` values | ||
## [0.11.0](https://github.com/carbon-design-system/sveld/releases/tag/v0.11.0) - 2021-12-16 | ||
@@ -15,0 +19,0 @@ |
@@ -62,2 +62,3 @@ "use strict"; | ||
var svelte_preprocess_1 = require("svelte-preprocess"); | ||
var path_1 = require("./path"); | ||
function pluginSveld(opts) { | ||
@@ -105,6 +106,3 @@ var result; | ||
var moduleName = path.parse(file).name.replace(/\-/g, ""); | ||
var source = "./" + path.relative(dir, file); | ||
if (path.sep !== "/") { | ||
source = source.split(path.sep).join("/"); | ||
} | ||
var source = (0, path_1.normalizeSeparators)("./" + path.relative(dir, file)); | ||
if (exports[moduleName]) { | ||
@@ -111,0 +109,0 @@ exports[moduleName].source = source; |
@@ -51,2 +51,3 @@ "use strict"; | ||
var path = require("path"); | ||
var path_1 = require("../path"); | ||
var Writer_1 = require("./Writer"); | ||
@@ -63,3 +64,3 @@ function writeJson(components, options) { | ||
var moduleName = _a[0], component = _a[1]; | ||
return (__assign(__assign({}, component), { filePath: path.join(options.inputDir, path.normalize(component.filePath)) })); | ||
return (__assign(__assign({}, component), { filePath: (0, path_1.normalizeSeparators)(path.join(options.inputDir, path.normalize(component.filePath))) })); | ||
}).sort(function (a, b) { | ||
@@ -66,0 +67,0 @@ if (a.moduleName < b.moduleName) |
{ | ||
"name": "sveld", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"license": "Apache-2.0", | ||
@@ -14,3 +14,3 @@ "description": "Generate TypeScript definitions for your Svelte components.", | ||
"test:integration": "node tests/integration", | ||
"format": "prettier --write '{src,tests}/**/*.{ts,svelte}'", | ||
"format": "prettier --write \"{src,tests}/**/*.{ts,svelte}\"", | ||
"prepack": "run-s build test" | ||
@@ -17,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112047
33
1826