@tinacms/scripts 0.51.0 → 0.51.2
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/dist/index.js +18 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278,6 +278,9 @@ var config = (cwd = "") => {
|
|
|
278
278
|
auto: "auto"
|
|
279
279
|
},
|
|
280
280
|
extend: {
|
|
281
|
+
animation: {
|
|
282
|
+
"spin-reverse": "spin 1s linear infinite reverse"
|
|
283
|
+
},
|
|
281
284
|
scale: {
|
|
282
285
|
97: ".97",
|
|
283
286
|
103: "1.03"
|
|
@@ -340,6 +343,12 @@ var config = (cwd = "") => {
|
|
|
340
343
|
},
|
|
341
344
|
maxWidth: {
|
|
342
345
|
form: "900px"
|
|
346
|
+
},
|
|
347
|
+
screens: {
|
|
348
|
+
xs: "320px",
|
|
349
|
+
sm: "560px",
|
|
350
|
+
md: "720px",
|
|
351
|
+
lg: "1030px"
|
|
343
352
|
}
|
|
344
353
|
}
|
|
345
354
|
},
|
|
@@ -363,6 +372,14 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
363
372
|
const peerDeps = packageJSON.peerDependencies;
|
|
364
373
|
const external = Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, _chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, deps), peerDeps));
|
|
365
374
|
const globals = {};
|
|
375
|
+
const out = (entry2) => {
|
|
376
|
+
const { dir, name } = _path2.default.parse(entry2);
|
|
377
|
+
const outdir = dir.replace("src", "dist");
|
|
378
|
+
const outfile = name;
|
|
379
|
+
const relativeOutfile = _path2.default.join(outdir.split("/").map(() => "..").join("/"), dir, name);
|
|
380
|
+
return { outdir, outfile, relativeOutfile };
|
|
381
|
+
};
|
|
382
|
+
const outInfo = out(entry);
|
|
366
383
|
external.forEach((ext) => globals[ext] = "NOOP");
|
|
367
384
|
if (target === "node") {
|
|
368
385
|
if (["@tinacms/graphql", "@tinacms/datalayer"].includes(packageJSON.name)) {
|
|
@@ -391,7 +408,7 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
391
408
|
entryPoints: [_path2.default.join(process.cwd(), entry)],
|
|
392
409
|
bundle: true,
|
|
393
410
|
platform: "node",
|
|
394
|
-
outfile: _path2.default.join(process.cwd(), "dist",
|
|
411
|
+
outfile: _path2.default.join(process.cwd(), "dist", `${outInfo.outfile}.js`),
|
|
395
412
|
external,
|
|
396
413
|
target: "node12"
|
|
397
414
|
});
|
|
@@ -400,14 +417,6 @@ var buildIt = async (entryPoint, packageJSON) => {
|
|
|
400
417
|
await _fsextra2.default.writeFileSync(_path2.default.join(process.cwd(), "dist", entry.replace("src/", "").replace(extension, ".d.ts")), `export * from "../${entry.replace(extension, "")}"`);
|
|
401
418
|
return true;
|
|
402
419
|
}
|
|
403
|
-
const out = (entry2) => {
|
|
404
|
-
const { dir, name } = _path2.default.parse(entry2);
|
|
405
|
-
const outdir = dir.replace("src", "dist");
|
|
406
|
-
const outfile = name;
|
|
407
|
-
const relativeOutfile = _path2.default.join(outdir.split("/").map(() => "..").join("/"), dir, name);
|
|
408
|
-
return { outdir, outfile, relativeOutfile };
|
|
409
|
-
};
|
|
410
|
-
const outInfo = out(entry);
|
|
411
420
|
const defaultBuildConfig = {
|
|
412
421
|
plugins: [
|
|
413
422
|
{
|