@tinacms/scripts 1.0.0 → 1.0.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/LICENSE CHANGED
@@ -1,3 +1,11 @@
1
+ Copyright (c) 2023-present Forestry.io Holdings Inc.
2
+
3
+ Portions of the TinaCMS software are licensed as follows:
4
+
5
+ * All software that resides under the "packages/@tinacms/datalayer/" and the "packages/@tinacms/graphql/" directories (the "Tina Data Layer"), is licensed under the license defined in "packages/@tinacms/datalayer/LICENSE".
6
+
7
+ * All software outside of the above-mentioned directories is available under the "Apache 2.0" license as set forth below.
8
+
1
9
  Apache License
2
10
  Version 2.0, January 2004
3
11
  http://www.apache.org/licenses/
@@ -1,14 +1,5 @@
1
1
  /**
2
- Copyright 2021 Forestry.io Holdings, Inc.
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
- http://www.apache.org/licenses/LICENSE-2.0
7
- Unless required by applicable law or agreed to in writing, software
8
- distributed under the License is distributed on an "AS IS" BASIS,
9
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- See the License for the specific language governing permissions and
11
- limitations under the License.
2
+
12
3
  */
13
4
 
14
5
  // __mocks__/styleMock.js
package/dist/index.js CHANGED
@@ -278,7 +278,20 @@ var config = (cwd = "") => {
278
278
  auto: "auto"
279
279
  },
280
280
  extend: {
281
+ keyframes: {
282
+ slideIn: {
283
+ "0%": {
284
+ opacity: "0",
285
+ transform: "translateY(-1rem)"
286
+ },
287
+ "100%": {
288
+ opacity: "1",
289
+ transform: "translateY(0)"
290
+ }
291
+ }
292
+ },
281
293
  animation: {
294
+ "slide-in": "slideIn 150ms ease-out 1 normal forwards",
282
295
  "spin-reverse": "spin 1s linear infinite reverse"
283
296
  },
284
297
  scale: {
@@ -391,9 +404,17 @@ var buildIt = async (entryPoint, packageJSON) => {
391
404
  outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
392
405
  external: external.filter((item) => !packageJSON.buildConfig.entryPoints[0].bundle.includes(item))
393
406
  });
407
+ await _esbuild.build.call(void 0, {
408
+ entryPoints: [_path2.default.join(process.cwd(), entry)],
409
+ bundle: true,
410
+ platform: "node",
411
+ target: "es2020",
412
+ format: "esm",
413
+ outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
414
+ external
415
+ });
394
416
  } else if (["@tinacms/mdx"].includes(packageJSON.name)) {
395
417
  const peerDeps2 = packageJSON.peerDependencies;
396
- const external2 = Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2));
397
418
  await _esbuild.build.call(void 0, {
398
419
  entryPoints: [_path2.default.join(process.cwd(), entry)],
399
420
  bundle: true,
@@ -401,7 +422,16 @@ var buildIt = async (entryPoint, packageJSON) => {
401
422
  target: "node12",
402
423
  format: "cjs",
403
424
  outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
404
- external: external2
425
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
426
+ });
427
+ await _esbuild.build.call(void 0, {
428
+ entryPoints: [_path2.default.join(process.cwd(), entry)],
429
+ bundle: true,
430
+ platform: "node",
431
+ target: "es2020",
432
+ format: "esm",
433
+ outfile: _path2.default.join(process.cwd(), "dist", "index.es.js"),
434
+ external
405
435
  });
406
436
  const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
407
437
  await _esbuild.build.call(void 0, {
@@ -409,7 +439,7 @@ var buildIt = async (entryPoint, packageJSON) => {
409
439
  bundle: true,
410
440
  format: "esm",
411
441
  outfile: appMDXPath,
412
- external: external2
442
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
413
443
  });
414
444
  } else {
415
445
  await _esbuild.build.call(void 0, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/scripts",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",