@fontoxml/fontoxml-development-tools 3.9.0-beta.3 → 3.9.0-beta.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fontoxml/fontoxml-development-tools",
3
- "version": "3.9.0-beta.3",
3
+ "version": "3.9.0-beta.4",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
@@ -8156,9 +8156,7 @@
8156
8156
  "version": "1.6.2",
8157
8157
  "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
8158
8158
  "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
8159
- "engines": [
8160
- "node >= 0.8"
8161
- ],
8159
+ "engines": ["node >= 0.8"],
8162
8160
  "dependencies": {
8163
8161
  "buffer-from": "^1.0.0",
8164
8162
  "inherits": "^2.0.3",
@@ -9987,9 +9985,7 @@
9987
9985
  "version": "1.3.0",
9988
9986
  "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
9989
9987
  "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
9990
- "engines": [
9991
- "node >=0.6.0"
9992
- ]
9988
+ "engines": ["node >=0.6.0"]
9993
9989
  },
9994
9990
  "node_modules/fast-deep-equal": {
9995
9991
  "version": "3.1.3",
@@ -10337,9 +10333,7 @@
10337
10333
  "dev": true,
10338
10334
  "hasInstallScript": true,
10339
10335
  "optional": true,
10340
- "os": [
10341
- "darwin"
10342
- ],
10336
+ "os": ["darwin"],
10343
10337
  "engines": {
10344
10338
  "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
10345
10339
  }
@@ -16674,9 +16668,7 @@
16674
16668
  "version": "1.10.0",
16675
16669
  "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
16676
16670
  "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
16677
- "engines": [
16678
- "node >=0.6.0"
16679
- ],
16671
+ "engines": ["node >=0.6.0"],
16680
16672
  "dependencies": {
16681
16673
  "assert-plus": "^1.0.0",
16682
16674
  "core-util-is": "1.0.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fontoxml/fontoxml-development-tools",
3
3
  "description": "Development tools for Fonto.",
4
- "version": "3.9.0-beta.3",
4
+ "version": "3.9.0-beta.4",
5
5
  "author": "The Fonto Team",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -8,9 +8,9 @@ export default async function getAppManifest(editorPath) {
8
8
  appManifest.favicon = appManifest.favicon || 'assets/images/favicon.ico';
9
9
  appManifest.name = appManifest.name || 'Fonto Editor';
10
10
  appManifest.supportedBrowsers = appManifest.supportedBrowsers || {
11
- chrome: '95',
12
- edge: '95',
13
- firefox: '94',
11
+ chrome: '98',
12
+ edge: '98',
13
+ firefox: '97',
14
14
  safari: '15',
15
15
  };
16
16
  return appManifest;
@@ -49,8 +49,6 @@ export default async function editorInitCommand(req, res) {
49
49
  );
50
50
  }
51
51
 
52
- const useTypeScript = !req.options['output-javascript'];
53
-
54
52
  // Check if the required fonto.json path has been specified when running non-interactive.
55
53
  if (req.options['non-interactive'] && !req.options['schema']) {
56
54
  throw new res.InputError('Missing schema value.');
@@ -119,6 +117,14 @@ export default async function editorInitCommand(req, res) {
119
117
  destroySpinner();
120
118
  }
121
119
 
120
+ // Do not initialise with TypeScript when no tsconfig.json is found.
121
+ const platformHasTsConfig = sdkFiles.some(
122
+ (file) => file.path === 'tsconfig.json'
123
+ );
124
+ const useTypeScript = req.options['output-javascript']
125
+ ? false
126
+ : platformHasTsConfig;
127
+
122
128
  // Set the sdkVersion to the actual version, for nightlies it's sets to the specific nightly version string instead of 'nightly'.
123
129
  sdkVersion = sdkManifest.version;
124
130