@matter/tools
Advanced tools
Comparing version 0.11.5-alpha.0-20241114-6af665cdd to 0.11.5-alpha.0-20241116-c923f6d75
@@ -10,2 +10,3 @@ /** | ||
export declare const BUILD_INFO_LOCATION = "build/info.json"; | ||
export declare const COMPILED_CONFIG_PATH = "build/build.config.js"; | ||
export interface BuildInformation { | ||
@@ -12,0 +13,0 @@ /** |
@@ -22,2 +22,3 @@ "use strict"; | ||
BUILD_INFO_LOCATION: () => BUILD_INFO_LOCATION, | ||
COMPILED_CONFIG_PATH: () => COMPILED_CONFIG_PATH, | ||
Project: () => Project | ||
@@ -38,2 +39,3 @@ }); | ||
const BUILD_INFO_LOCATION = "build/info.json"; | ||
const COMPILED_CONFIG_PATH = "build/build.config.js"; | ||
class Project { | ||
@@ -120,3 +122,3 @@ pkg; | ||
const configPath = this.pkg.resolve(import_package.CONFIG_PATH); | ||
const outfile = configPath.replace(/\\/g, "/").replace("/src/", "/build/").replace(/\.ts$/, ".js"); | ||
const outfile = this.pkg.resolve(COMPILED_CONFIG_PATH).replaceAll("\\", "/"); | ||
await (0, import_esbuild.build)({ | ||
@@ -123,0 +125,0 @@ entryPoints: [configPath], |
@@ -10,2 +10,3 @@ /** | ||
export declare const BUILD_INFO_LOCATION = "build/info.json"; | ||
export declare const COMPILED_CONFIG_PATH = "build/build.config.js"; | ||
export interface BuildInformation { | ||
@@ -12,0 +13,0 @@ /** |
@@ -13,2 +13,3 @@ /** | ||
const BUILD_INFO_LOCATION = "build/info.json"; | ||
const COMPILED_CONFIG_PATH = "build/build.config.js"; | ||
class Project { | ||
@@ -95,3 +96,3 @@ pkg; | ||
const configPath = this.pkg.resolve(CONFIG_PATH); | ||
const outfile = configPath.replace(/\\/g, "/").replace("/src/", "/build/").replace(/\.ts$/, ".js"); | ||
const outfile = this.pkg.resolve(COMPILED_CONFIG_PATH).replaceAll("\\", "/"); | ||
await esbuild({ | ||
@@ -184,4 +185,5 @@ entryPoints: [configPath], | ||
BUILD_INFO_LOCATION, | ||
COMPILED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AgIC8vIElmIGRldmVsb3BlciBtb2RlIGlzIG5vdCBlbmFibGVkLCB3ZSBjYW4ndCBjcmVhdGUgYSBzeW1saW5rXG4gICAgICAgICAgICAgICAgLy8gb24gV2luZG93cy4gIENvcHkgaW5zdGVhZFxuICAgICAgICAgICAgICAgIGF3YWl0IGNwKHRoaXMucGtnLnJlc29sdmUoc3JjKSwgdGhpcy5wa2cucmVzb2x2ZShkZXN0KSwge1xuICAgICAgICAgICAgICAgICAgICByZWN1cnNpdmU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGZvcmNlOiB0cnVlLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGF3YWl0IHRoaXMuI2NvbmZpZ3VyZUZvcm1hdChcImJ1aWxkXCIsIGZvcm1hdCwgZmFsc2UpO1xuICAgIH1cblxuICAgIGFzeW5jIGNsZWFuKCkge1xuICAgICAgICBmb3IgKGNvbnN0IGRpciBvZiBbXCJidWlsZFwiLCBcImRpc3RcIl0pIHtcbiAgICAgICAgICAgIGF3YWl0IHJtKHRoaXMucGtnLnJlc29sdmUoZGlyKSwgeyByZWN1cnNpdmU6IHRydWUsIGZvcmNlOiB0cnVlIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0IGhhc0RlY2xhcmF0aW9ucygpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMucGtnLmhhc0RpcmVjdG9yeShcImJ1aWxkL3R5cGVzXCIpO1xuICAgIH1cblxuICAgIGFzeW5jIGhhc2hEZWNsYXJhdGlvbnMoYXBpU2hhOiBIYXNoKSB7XG4gICAgICAgIGlmICghdGhpcy5wa2cuaXNMaWJyYXJ5KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcGF0aDtcbiAgICAgICAgaWYgKHRoaXMucGtnL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AgcmV0dXJuIHt9O1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgY29uZmlnUGF0aCA9IHRoaXMucGtnLnJlc29sdmUoQ09ORklHX1BBVEgpO1xuXG4gICAgICAgIGNvbnN0IG91dGZpbGUgPSBjb25maWdQYXRoLnJlcGxhY2UoL1xcXFwvZywgXCIvXCIpLnJlcGxhY2UoXCIvc3JjL1wiLCBcIi9idWlsZC9cIikucmVwbGFjZSgvXFwudHMkLywgXCIuanNcIik7XG4gICAgICAgIGF3YWl0IGVzYnVpbGQoe1xuICAgICAgICAgICAgZW50cnlQb2ludHM6IFtjb25maWdQYXRoXSxcbiAgICAgICAgICAgIG91dGZpbGUsXG4gICAgICAgICAgICBzb3VyY2VtYXA6IHRydWUsXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuI2NvbmZpZyA9IChhd2FpdCBpbXBvcnQoYGZpbGU6Ly8ke291dGZpbGV9YCkpIGFzIFByb2plY3QuQ29uZmlnIHwgdW5kZWZpbmVkO1xuICAgICAgICB0aGlzLiNjb25maWd1cmVkID0gdHJ1ZTtcblxuICAgICAgICBpZiAodGhpcy4jY29uZmlnPy5zdGFydHVwKSB7XG4gICAgICAgICAgICBhd2FpdCB0aGlzLiNjb25maWc/LnN0YXJ0dXAoe1xuICAgICAgICAgICAgICAgIHByb2plY3Q6IHRoaXMsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLiNjb25maWc7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQ29weSBmaWxlcyBpbnRvIGRpc3QgZm9yIHN1cHBvcnRlZCBmb3JtYXRzLlxuICAgICAqL1xuICAgIGFzeW5jIGNvcHlUb0Rpc3Qoc291cmNlOiBzdHJpbmcsIGRlc3Q6IHN0cmluZykge1xuICAgICAgICBjb25zdCBmb3JtYXRzID0gQXJyYXk8c3RyaW5nPigpO1xuICAgICAgICBpZiAodGhpcy5wa2cuc3VwcG9ydHNFc20pIHtcbiAgICAgICAgICAgIGZvcm1hdHMucHVzaChcImVzbVwiKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5wa2cuc3VwcG9ydHNDanMpIHtcbiAgICAgICAgICAgIGZvcm1hdHMucHVzaChcImNqc1wiKTtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKGNvbnN0IGZvcm1hdCBvZiBmb3JtYXRzKSB7XG4gICAgICAgICAgICBhd2FpdCBjcCh0aGlzLnBrZy5yZXNvbHZlKHNvdXJjZSksIHRoaXMucGtnLnJlc29sdmUoam9pbihcImRpc3RcIiwgZm9ybWF0LCBkZXN0KSksIHtcbiAgICAgICAgICAgICAgICByZWN1cnNpdmU6IHRydWUsXG4gICAgICAgICAgICAgICAgZm9yY2U6IHRydWUsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFzeW5jICNidWlsZChmb3JtYXQ6IEZvcm1hdCwgaW5kaXI6IHN0cmluZywgb3V0ZGlyOiBzdHJpbmcpIHtcbiAgICAgICAgY29uc3QgZW50cnlQb2ludHMgPSBhd2FpdCB0aGlzLiN0YXJnZXRzT2YoaW5kaXIsIG91dGRpciwgXCJ0c1wiLCBcImpzXCIpO1xuXG4gICAgICAgIGNvbnN0IGNvbmZpZ1BhdGggPSB0aGlzLnBrZy5yZXNvbHZlKENPTkZJR19QQVRIKTtcbiAgICAgICAgZm9yIChjb25zdCBlbnRyeSBvZiBlbnRyeVBvaW50cykge1xuICAgICAgICAgICAgaWYgKGVudHJ5LmluID09PSBjb25maWdQYXRoKSB7XG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbnRyeS5vdXQgPSBlbnRyeS5vdXQucmVwbGFjZSgvXFwuW2p0XXMkLywgXCJcIik7XG4gICAgICAgIH1cblxuICAgICAgICBhd2FpdCBlc2J1aWxkKHtcbiAgICAgICAgICAgIGVudHJ5UG9pbnRzLFxuICAgICAgICAgICAgb3V0ZGlyOiB0aGlzLnBrZy5wYXRoLFxuICAgICAgICAgICAgZm9ybWF0LFxuICAgICAgICAgICAgc291cmNlbWFwOiB0cnVlLFxuICAgICAgICAgICAgc291cmNlc0NvbnRlbnQ6IGZhbHNlLFxuICAgICAgICAgICAgYWJzV29ya2luZ0RpcjogZGlybmFtZSh0aGlzLnBrZy5yZXNvbHZlKGluZGlyKSksXG5cbiAgICAgICAgICAgIC8vIFRoaXMgaXMgbmVjZXNzYXJ5IHRvIGRvd25sZXZlbCBcInVzaW5nXCJcbiAgICAgICAgICAgIHRhcmdldDogXCJlczIwMjJcIixcblxuICAgICAgICAgICAgbG9nT3ZlcnJpZGU6IHtcbiAgICAgICAgICAgICAgICBcImRpcmVjdC1ldmFsXCI6IFwic2lsZW50XCIsXG4gICAgICAgICAgICB9LFxuICAgICAgICB9KTtcblxuICAgICAgICBmb3IgKGNvbnN0IGVudHJ5IG9mIGF3YWl0IHRoaXMuI3RhcmdldHNPZihpbmRpciwgb3V0ZGlyLCBcImNqc1wiLCBcIm1qc1wiLCBcImQuY3RzXCIsIFwiZC5tdHNcIikpIHtcbiAgICAgICAgICAgIGF3YWl0IGNwKGVudHJ5LmluLCBlbnRyeS5vdXQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYXN5bmMgI2NvbmZpZ3VyZUZvcm1hdChkaXI6IHN0cmluZywgZm9ybWF0OiBGb3JtYXQsIGlzRGlzdDogYm9vbGVhbikge1xuICAgICAgICAvLyBCdWlsZCBpbXBvcnQgbWFwXG4gICAgICAgIGxldCB7IGltcG9ydHMgfSA9IHRoaXMucGtnLmpzb247XG4gICAgICAgIGlmIChpc0Rpc3QgJiYgdHlwZW9mIGltcG9ydHMgPT09IFwib2JqZWN0XCIpIHtcbiAgICAgICAgICAgIGltcG9ydHMgPSB7IC4uLmltcG9ydHMgfTtcbiAgICAgICAgICAgIGZvciAoY29uc3Qga2V5IGluIGltcG9ydHMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCB2Y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gICAgICAgICAgICAvLyBJZiBkZXZlbG9wZXIgbW9kZSBpcyBub3QgZW5hYmxlZCwgd2UgY2FuJ3QgY3JlYXRlIGEgc3ltbGlua1xuICAgICAgICAgICAgICAgIC8vIG9uIFdpbmRvd3MuICBDb3B5IGluc3RlYWRcbiAgICAgICAgICAgICAgICBhd2FpdCBjcCh0aGlzLnBrZy5yZXNvbHZlKHNyYyksIHRoaXMucGtnLnJlc29sdmUoZGVzdCksIHtcbiAgICAgICAgICAgICAgICAgICAgcmVjdXJzaXZlOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICBmb3JjZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBhd2FpdCB0aGlzLiNjb25maWd1cmVGb3JtYXQoXCJidWlsZFwiLCBmb3JtYXQsIGZhbHNlKTtcbiAgICB9XG5cbiAgICBhc3luYyBjbGVhbigpIHtcbiAgICAgICAgZm9yIChjb25zdCBkaXIgb2YgW1wiYnVpbGRcIiwgXCJkaXN0XCJdKSB7XG4gICAgICAgICAgICBhd2FpdCBybSh0aGlzLnBrZy5yZXNvbHZlKGRpciksIHsgcmVjdXJzaXZlOiB0cnVlLCBmb3JjZTogdHJ1ZSB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGdldCBoYXNEZWNsYXJhdGlvbnMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnBrZy5oYXNEaXJlY3RvcnkoXCJidWlsZC90eXBlc1wiKTtcbiAgICB9XG5cbiAgICBhc3luYyBoYXNoRGVjbGFyYXRpb25zKGFwaVNoYTogSGFzaCkge1xuICAgICAgICBpZiAoIXRoaXMucGtnLmlzTGlicmFyeSkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHBhdGg7XG4gICAgICAgIGlmIC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SB7XG4gICAgICAgICAgICBmb3JtYXRzLnB1c2goXCJlc21cIik7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMucGtnLnN1cHBvcnRzQ2pzKSB7XG4gICAgICAgICAgICBmb3JtYXRzLnB1c2goXCJjanNcIik7XG4gICAgICAgIH1cbiAgICAgICAgZm9yIChjb25zdCBmb3JtYXQgb2YgZm9ybWF0cykge1xuICAgICAgICAgICAgYXdhaXQgY3AodGhpcy5wa2cucmVzb2x2ZShzb3VyY2UpLCB0aGlzLnBrZy5yZXNvbHZlKGpvaW4oXCJkaXN0XCIsIGZvcm1hdCwgZGVzdCkpLCB7XG4gICAgICAgICAgICAgICAgcmVjdXJzaXZlOiB0cnVlLFxuICAgICAgICAgICAgICAgIGZvcmNlOiB0cnVlLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBhc3luYyAjYnVpbGQoZm9ybWF0OiBGb3JtYXQsIGluZGlyOiBzdHJpbmcsIG91dGRpcjogc3RyaW5nKSB7XG4gICAgICAgIGNvbnN0IGVudHJ5UG9pbnRzID0gYXdhaXQgdGhpcy4jdGFyZ2V0c09mKGluZGlyLCBvdXRkaXIsIFwidHNcIiwgXCJqc1wiKTtcblxuICAgICAgICBjb25zdCBjb25maWdQYXRoID0gdGhpcy5wa2cucmVzb2x2ZShDT05GSUdfUEFUSCk7XG4gICAgICAgIGZvciAoY29uc3QgZW50cnkgb2YgZW50cnlQb2ludHMpIHtcbiAgICAgICAgICAgIGlmIChlbnRyeS5pbiA9PT0gY29uZmlnUGF0aCkge1xuICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZW50cnkub3V0ID0gZW50cnkub3V0LnJlcGxhY2UoL1xcLltqdF1zJC8sIFwiXCIpO1xuICAgICAgICB9XG5cbiAgICAgICAgYXdhaXQgZXNidWlsZCh7XG4gICAgICAgICAgICBlbnRyeVBvaW50cyxcbiAgICAgICAgICA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gICAgICAgICAgY29uc3QgdmFsdWUgPSBpbXBvcnRzW2tleV07XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgICAgICAgICAgICBpbXBvcnRzW2tleV0gPSB2YWx1ZS5yZXBsYWNlKC9eXFwuXFwvc3JjXFwvLywgXCIuL1wiKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBXcml0ZSBwYWNrYWdlLmpzb25cbiAgICAgICAgY29uc3QgcGF0aCA9IHRoaXMucGtnLnJlc29sdmUoYCR7ZGlyfS8ke2Zvcm1hdH0vcGFja2FnZS5qc29uYCk7XG4gICAgICAgIGNvbnN0IGpzb246IFJlY29yZDxzdHJpbmcsIHVua25vd24+ID0ge1xuICAgICAgICAgICAgdHlwZTogZm9ybWF0ID09PSBcImNqc1wiID8gXCJjb21tb25qc1wiIDogXCJtb2R1bGVcIixcbiAgICAgICAgICAgIGltcG9ydHMsXG4gICAgICAgIH07XG4gICAgICAgIGF3YWl0IHdyaXRlRmlsZShwYXRoLCBKU09OLnN0cmluZ2lmeShqc29uLCB1bmRlZmluZWQsIDQpKTtcbiAgICB9XG5cbiAgICBhc3luYyAjdGFyZ2V0c09mKGluZGlyOiBzdHJpbmcsIG91dGRpcjogc3RyaW5nLCAuLi5leHRlbnNpb25zOiBzdHJpbmdbXSkge1xuICAgICAgICBjb25zdCBpbnB1dFByZWZpeExlbmd0aCA9IHRoaXMucGtnLnJlc29sdmUoaW5kaXIpLmxlbmd0aCArIDE7XG4gICAgICAgIG91dGRpciA9IHRoaXMucGtnLnJlc29sdmUob3V0ZGlyKS5yZXBsYWNlKC9cXFxcL2csIFwiL1wiKTtcblxuICAgICAgICByZXR1cm4gKGF3YWl0IHRoaXMucGtnLmdsb2IoZXh0ZW5zaW9ucy5tYXAoZXh0ID0+IGAke2luZGlyfS8qKi8qLiR7ZXh0fWApKS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0-20241116-c923f6d75", | ||
"description": "Matter.js tooling", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -16,2 +16,3 @@ /** | ||
export const BUILD_INFO_LOCATION = "build/info.json"; | ||
export const COMPILED_CONFIG_PATH = "build/build.config.js"; | ||
@@ -133,4 +134,4 @@ export interface BuildInformation { | ||
const configPath = this.pkg.resolve(CONFIG_PATH); | ||
const outfile = this.pkg.resolve(COMPILED_CONFIG_PATH).replaceAll("\\", "/"); | ||
const outfile = configPath.replace(/\\/g, "/").replace("/src/", "/build/").replace(/\.ts$/, ".js"); | ||
await esbuild({ | ||
@@ -137,0 +138,0 @@ entryPoints: [configPath], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
656250
9932