@tinacms/scripts 1.0.1 → 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
@@ -404,9 +404,17 @@ var buildIt = async (entryPoint, packageJSON) => {
404
404
  outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
405
405
  external: external.filter((item) => !packageJSON.buildConfig.entryPoints[0].bundle.includes(item))
406
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
+ });
407
416
  } else if (["@tinacms/mdx"].includes(packageJSON.name)) {
408
417
  const peerDeps2 = packageJSON.peerDependencies;
409
- const external2 = Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2));
410
418
  await _esbuild.build.call(void 0, {
411
419
  entryPoints: [_path2.default.join(process.cwd(), entry)],
412
420
  bundle: true,
@@ -414,7 +422,16 @@ var buildIt = async (entryPoint, packageJSON) => {
414
422
  target: "node12",
415
423
  format: "cjs",
416
424
  outfile: _path2.default.join(process.cwd(), "dist", "index.js"),
417
- 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
418
435
  });
419
436
  const appMDXPath = _path2.default.join(process.cwd(), "..", "app", "appFiles", "src", "fields", "rich-text", "monaco", "mdx.js");
420
437
  await _esbuild.build.call(void 0, {
@@ -422,7 +439,7 @@ var buildIt = async (entryPoint, packageJSON) => {
422
439
  bundle: true,
423
440
  format: "esm",
424
441
  outfile: appMDXPath,
425
- external: external2
442
+ external: Object.keys(_chunkNYQD2IPWjs.__spreadValues.call(void 0, {}, peerDeps2))
426
443
  });
427
444
  } else {
428
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.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",