@bookshop/builder
Advanced tools
Comparing version 2.0.0-beta.22 to 2.0.0-beta.23
@@ -1,1 +0,1 @@ | ||
{"processes":{"0a822aac-3b27-421a-b1af-afd4724e2473":{"parent":"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea","children":[]},"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea":{"parent":null,"children":["0a822aac-3b27-421a-b1af-afd4724e2473","443f2ef8-a94a-4124-af83-f36f01b7064d","c642c998-91c6-4397-b233-decff61cac2c","ca9e7b52-12f1-44ac-b37d-8e89fdf3264c","edc9442e-b525-408f-8fc8-b02877204852"]},"443f2ef8-a94a-4124-af83-f36f01b7064d":{"parent":"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea","children":[]},"c642c998-91c6-4397-b233-decff61cac2c":{"parent":"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea","children":[]},"ca9e7b52-12f1-44ac-b37d-8e89fdf3264c":{"parent":"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea","children":[]},"edc9442e-b525-408f-8fc8-b02877204852":{"parent":"3400fa8a-3c7d-4ae4-aabb-c5ca05724fea","children":[]}},"files":{},"externalIds":{}} | ||
{"processes":{"129dbcb9-f6b2-4544-a42e-c62112f55546":{"parent":"c532a081-04f8-49e2-ab7b-95da42184423","children":[]},"3d3dd8a7-ba52-42da-9139-d0b1e1a6a352":{"parent":"c532a081-04f8-49e2-ab7b-95da42184423","children":[]},"46e18217-c632-4464-b479-0ee8133c95e3":{"parent":"c532a081-04f8-49e2-ab7b-95da42184423","children":[]},"7ea0c2d4-fec3-4acd-94b5-ee7e446727d4":{"parent":"c532a081-04f8-49e2-ab7b-95da42184423","children":[]},"c532a081-04f8-49e2-ab7b-95da42184423":{"parent":null,"children":["129dbcb9-f6b2-4544-a42e-c62112f55546","3d3dd8a7-ba52-42da-9139-d0b1e1a6a352","46e18217-c632-4464-b479-0ee8133c95e3","7ea0c2d4-fec3-4acd-94b5-ee7e446727d4","e68df929-5d3f-4a64-bb43-60ea3f4f7d0f"]},"e68df929-5d3f-4a64-bb43-60ea3f4f7d0f":{"parent":"c532a081-04f8-49e2-ab7b-95da42184423","children":[]}},"files":{},"externalIds":{}} |
@@ -20,7 +20,6 @@ import path from 'path'; | ||
plugins: [], | ||
loader: { | ||
".bookshop.toml": "text", | ||
}, | ||
loader: {}, | ||
...(options.esbuild || {}) | ||
} | ||
esbuildOptions.loader[".bookshop.toml"] = "text"; | ||
@@ -27,0 +26,0 @@ options.bookshopDirs = filterBookshops(options.bookshopDirs); |
@@ -111,1 +111,22 @@ import test from 'ava'; | ||
}); | ||
test('should import TOML files', async t => { | ||
let result = await Builder({ | ||
esbuild: { | ||
stdin: { | ||
contents: `import components from "__bookshop_components__"; | ||
console.log(components);`, | ||
resolveDir: process.cwd(), | ||
sourcefile: 'virtual.js' | ||
}, | ||
write: false, | ||
format: 'esm' | ||
}, | ||
bookshopDirs: [ | ||
path.join(process.cwd(), './.test/fixtures') | ||
] | ||
}); | ||
t.is(result.errors.length, 0); | ||
t.is(result.warnings.length, 0); | ||
t.regex(result.outputFiles[0].text, /Card Component TOML/); | ||
}); |
{ | ||
"name": "@bookshop/builder", | ||
"version": "2.0.0-beta.22", | ||
"version": "2.0.0-beta.23", | ||
"description": "esbuild wrapper for bringing bookshop components and engines throught to a frontend", | ||
@@ -16,3 +16,3 @@ "type": "module", | ||
"devDependencies": { | ||
"@bookshop/jekyll-engine": "2.0.0-beta.22", | ||
"@bookshop/jekyll-engine": "2.0.0-beta.23", | ||
"ava": "^3.15.0", | ||
@@ -22,3 +22,3 @@ "nyc": "^15.1.0" | ||
"dependencies": { | ||
"@bookshop/styles": "2.0.0-beta.22", | ||
"@bookshop/styles": "2.0.0-beta.23", | ||
"esbuild": "^0.12.17" | ||
@@ -25,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
27273
616
+ Added@bookshop/styles@2.0.0-beta.23(transitive)
- Removed@bookshop/styles@2.0.0-beta.22(transitive)