@apps-in-toss/plugins 1.13.0 → 1.14.1
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.cjs +7 -5
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -5
- package/dist/internal.cjs +7 -5
- package/dist/internal.js +7 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ var require_package = __commonJS({
|
|
|
208
208
|
module2.exports = {
|
|
209
209
|
name: "@apps-in-toss/plugins",
|
|
210
210
|
type: "module",
|
|
211
|
-
version: "1.
|
|
211
|
+
version: "1.14.1",
|
|
212
212
|
description: "The plugins for Apps In Toss",
|
|
213
213
|
scripts: {
|
|
214
214
|
test: "vitest --run",
|
|
@@ -483,7 +483,7 @@ function getUnityMetaDataEnv() {
|
|
|
483
483
|
|
|
484
484
|
// src/utils/createArtifact.ts
|
|
485
485
|
async function createArtifact(options) {
|
|
486
|
-
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame } = options;
|
|
486
|
+
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame, isWeb } = options;
|
|
487
487
|
const unityMetaData = getUnityMetaDataEnv();
|
|
488
488
|
const appJsonContent = await fs3.readFile(appJsonPath, "utf-8");
|
|
489
489
|
const appJson = JSON.parse(appJsonContent);
|
|
@@ -501,7 +501,7 @@ async function createArtifact(options) {
|
|
|
501
501
|
createdBy: "@apps-in-toss/plugins"
|
|
502
502
|
});
|
|
503
503
|
writer.setMetadata({
|
|
504
|
-
platform: import_ait_format.PlatformType.REACT_NATIVE,
|
|
504
|
+
platform: isWeb ? import_ait_format.PlatformType.WEB : import_ait_format.PlatformType.REACT_NATIVE,
|
|
505
505
|
runtimeVersion: reactNativeVersion,
|
|
506
506
|
isGame,
|
|
507
507
|
sdkVersion,
|
|
@@ -556,7 +556,8 @@ function appsInTossCreateArtifact(deploymentId, buildOption) {
|
|
|
556
556
|
}
|
|
557
557
|
]).flat(),
|
|
558
558
|
outfile: import_path3.default.join(cwd, `${appName}.ait`),
|
|
559
|
-
appJsonPath: import_path3.default.join(packageRoot, ".granite", APP_MANIFEST_NAME)
|
|
559
|
+
appJsonPath: import_path3.default.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
560
|
+
isWeb: buildOption.isWeb
|
|
560
561
|
});
|
|
561
562
|
if (!artifactOutfile) {
|
|
562
563
|
throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
|
|
@@ -1444,7 +1445,8 @@ function appsInToss(options) {
|
|
|
1444
1445
|
const sdkVersion = getSdkVersion();
|
|
1445
1446
|
const buildOptions = {
|
|
1446
1447
|
sdkVersion,
|
|
1447
|
-
isGame: result.data.appType === "game"
|
|
1448
|
+
isGame: result.data.appType === "game",
|
|
1449
|
+
isWeb: false
|
|
1448
1450
|
};
|
|
1449
1451
|
return withAppsInTossCommon(
|
|
1450
1452
|
[appsInTossDevServer(options), appsInTossCreateArtifact(deploymentId, buildOptions), appsInTossPostNotice()],
|
package/dist/index.d.cts
CHANGED
|
@@ -100,6 +100,7 @@ interface CreateArtifactOptions {
|
|
|
100
100
|
outfile: string;
|
|
101
101
|
deploymentId: AppsInTossBuildMetadata['deploymentId'];
|
|
102
102
|
packageJson: AppsInTossBuildMetadata['packageJson'];
|
|
103
|
+
isWeb: boolean;
|
|
103
104
|
additionalFilesToZip?: {
|
|
104
105
|
path: string;
|
|
105
106
|
name: string;
|
|
@@ -132,6 +133,7 @@ declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permi
|
|
|
132
133
|
declare function appsInTossCreateArtifact(deploymentId: string, buildOption: {
|
|
133
134
|
isGame: boolean;
|
|
134
135
|
sdkVersion: string;
|
|
136
|
+
isWeb: boolean;
|
|
135
137
|
}): GranitePluginCore;
|
|
136
138
|
|
|
137
139
|
declare function appsInTossEsbuildConfig(envScript: string): GranitePluginCore;
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ interface CreateArtifactOptions {
|
|
|
100
100
|
outfile: string;
|
|
101
101
|
deploymentId: AppsInTossBuildMetadata['deploymentId'];
|
|
102
102
|
packageJson: AppsInTossBuildMetadata['packageJson'];
|
|
103
|
+
isWeb: boolean;
|
|
103
104
|
additionalFilesToZip?: {
|
|
104
105
|
path: string;
|
|
105
106
|
name: string;
|
|
@@ -132,6 +133,7 @@ declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permi
|
|
|
132
133
|
declare function appsInTossCreateArtifact(deploymentId: string, buildOption: {
|
|
133
134
|
isGame: boolean;
|
|
134
135
|
sdkVersion: string;
|
|
136
|
+
isWeb: boolean;
|
|
135
137
|
}): GranitePluginCore;
|
|
136
138
|
|
|
137
139
|
declare function appsInTossEsbuildConfig(envScript: string): GranitePluginCore;
|
package/dist/index.js
CHANGED
|
@@ -206,7 +206,7 @@ var require_package = __commonJS({
|
|
|
206
206
|
module.exports = {
|
|
207
207
|
name: "@apps-in-toss/plugins",
|
|
208
208
|
type: "module",
|
|
209
|
-
version: "1.
|
|
209
|
+
version: "1.14.1",
|
|
210
210
|
description: "The plugins for Apps In Toss",
|
|
211
211
|
scripts: {
|
|
212
212
|
test: "vitest --run",
|
|
@@ -457,7 +457,7 @@ function getUnityMetaDataEnv() {
|
|
|
457
457
|
|
|
458
458
|
// src/utils/createArtifact.ts
|
|
459
459
|
async function createArtifact(options) {
|
|
460
|
-
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame } = options;
|
|
460
|
+
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame, isWeb } = options;
|
|
461
461
|
const unityMetaData = getUnityMetaDataEnv();
|
|
462
462
|
const appJsonContent = await fs3.readFile(appJsonPath, "utf-8");
|
|
463
463
|
const appJson = JSON.parse(appJsonContent);
|
|
@@ -475,7 +475,7 @@ async function createArtifact(options) {
|
|
|
475
475
|
createdBy: "@apps-in-toss/plugins"
|
|
476
476
|
});
|
|
477
477
|
writer.setMetadata({
|
|
478
|
-
platform: PlatformType.REACT_NATIVE,
|
|
478
|
+
platform: isWeb ? PlatformType.WEB : PlatformType.REACT_NATIVE,
|
|
479
479
|
runtimeVersion: reactNativeVersion,
|
|
480
480
|
isGame,
|
|
481
481
|
sdkVersion,
|
|
@@ -530,7 +530,8 @@ function appsInTossCreateArtifact(deploymentId, buildOption) {
|
|
|
530
530
|
}
|
|
531
531
|
]).flat(),
|
|
532
532
|
outfile: path4.join(cwd, `${appName}.ait`),
|
|
533
|
-
appJsonPath: path4.join(packageRoot, ".granite", APP_MANIFEST_NAME)
|
|
533
|
+
appJsonPath: path4.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
534
|
+
isWeb: buildOption.isWeb
|
|
534
535
|
});
|
|
535
536
|
if (!artifactOutfile) {
|
|
536
537
|
throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
|
|
@@ -1418,7 +1419,8 @@ function appsInToss(options) {
|
|
|
1418
1419
|
const sdkVersion = getSdkVersion();
|
|
1419
1420
|
const buildOptions = {
|
|
1420
1421
|
sdkVersion,
|
|
1421
|
-
isGame: result.data.appType === "game"
|
|
1422
|
+
isGame: result.data.appType === "game",
|
|
1423
|
+
isWeb: false
|
|
1422
1424
|
};
|
|
1423
1425
|
return withAppsInTossCommon(
|
|
1424
1426
|
[appsInTossDevServer(options), appsInTossCreateArtifact(deploymentId, buildOptions), appsInTossPostNotice()],
|
package/dist/internal.cjs
CHANGED
|
@@ -36,7 +36,7 @@ var require_package = __commonJS({
|
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@apps-in-toss/plugins",
|
|
38
38
|
type: "module",
|
|
39
|
-
version: "1.
|
|
39
|
+
version: "1.14.1",
|
|
40
40
|
description: "The plugins for Apps In Toss",
|
|
41
41
|
scripts: {
|
|
42
42
|
test: "vitest --run",
|
|
@@ -277,7 +277,7 @@ function getUnityMetaDataEnv() {
|
|
|
277
277
|
|
|
278
278
|
// src/utils/createArtifact.ts
|
|
279
279
|
async function createArtifact(options) {
|
|
280
|
-
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame } = options;
|
|
280
|
+
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame, isWeb } = options;
|
|
281
281
|
const unityMetaData = getUnityMetaDataEnv();
|
|
282
282
|
const appJsonContent = await fs3.readFile(appJsonPath, "utf-8");
|
|
283
283
|
const appJson = JSON.parse(appJsonContent);
|
|
@@ -295,7 +295,7 @@ async function createArtifact(options) {
|
|
|
295
295
|
createdBy: "@apps-in-toss/plugins"
|
|
296
296
|
});
|
|
297
297
|
writer.setMetadata({
|
|
298
|
-
platform: import_ait_format.PlatformType.REACT_NATIVE,
|
|
298
|
+
platform: isWeb ? import_ait_format.PlatformType.WEB : import_ait_format.PlatformType.REACT_NATIVE,
|
|
299
299
|
runtimeVersion: reactNativeVersion,
|
|
300
300
|
isGame,
|
|
301
301
|
sdkVersion,
|
|
@@ -350,7 +350,8 @@ function appsInTossCreateArtifact(deploymentId, buildOption) {
|
|
|
350
350
|
}
|
|
351
351
|
]).flat(),
|
|
352
352
|
outfile: import_path3.default.join(cwd, `${appName}.ait`),
|
|
353
|
-
appJsonPath: import_path3.default.join(packageRoot, ".granite", APP_MANIFEST_NAME)
|
|
353
|
+
appJsonPath: import_path3.default.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
354
|
+
isWeb: buildOption.isWeb
|
|
354
355
|
});
|
|
355
356
|
if (!artifactOutfile) {
|
|
356
357
|
throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
|
|
@@ -721,7 +722,8 @@ function appsInTossHost(options) {
|
|
|
721
722
|
const sdkVersion = getSdkVersion();
|
|
722
723
|
const buildOptions = {
|
|
723
724
|
sdkVersion,
|
|
724
|
-
isGame: false
|
|
725
|
+
isGame: false,
|
|
726
|
+
isWeb: false
|
|
725
727
|
};
|
|
726
728
|
return [
|
|
727
729
|
requireMicroFrontendRuntime(),
|
package/dist/internal.js
CHANGED
|
@@ -16,7 +16,7 @@ var require_package = __commonJS({
|
|
|
16
16
|
module.exports = {
|
|
17
17
|
name: "@apps-in-toss/plugins",
|
|
18
18
|
type: "module",
|
|
19
|
-
version: "1.
|
|
19
|
+
version: "1.14.1",
|
|
20
20
|
description: "The plugins for Apps In Toss",
|
|
21
21
|
scripts: {
|
|
22
22
|
test: "vitest --run",
|
|
@@ -246,7 +246,7 @@ function getUnityMetaDataEnv() {
|
|
|
246
246
|
|
|
247
247
|
// src/utils/createArtifact.ts
|
|
248
248
|
async function createArtifact(options) {
|
|
249
|
-
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame } = options;
|
|
249
|
+
const { bundleFiles, outfile, appJsonPath, reactNativeVersion, sdkVersion, isGame, isWeb } = options;
|
|
250
250
|
const unityMetaData = getUnityMetaDataEnv();
|
|
251
251
|
const appJsonContent = await fs3.readFile(appJsonPath, "utf-8");
|
|
252
252
|
const appJson = JSON.parse(appJsonContent);
|
|
@@ -264,7 +264,7 @@ async function createArtifact(options) {
|
|
|
264
264
|
createdBy: "@apps-in-toss/plugins"
|
|
265
265
|
});
|
|
266
266
|
writer.setMetadata({
|
|
267
|
-
platform: PlatformType.REACT_NATIVE,
|
|
267
|
+
platform: isWeb ? PlatformType.WEB : PlatformType.REACT_NATIVE,
|
|
268
268
|
runtimeVersion: reactNativeVersion,
|
|
269
269
|
isGame,
|
|
270
270
|
sdkVersion,
|
|
@@ -319,7 +319,8 @@ function appsInTossCreateArtifact(deploymentId, buildOption) {
|
|
|
319
319
|
}
|
|
320
320
|
]).flat(),
|
|
321
321
|
outfile: path4.join(cwd, `${appName}.ait`),
|
|
322
|
-
appJsonPath: path4.join(packageRoot, ".granite", APP_MANIFEST_NAME)
|
|
322
|
+
appJsonPath: path4.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
323
|
+
isWeb: buildOption.isWeb
|
|
323
324
|
});
|
|
324
325
|
if (!artifactOutfile) {
|
|
325
326
|
throw new Error("\uC544\uD2F0\uD329\uD2B8 \uC0DD\uC131\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694.");
|
|
@@ -690,7 +691,8 @@ function appsInTossHost(options) {
|
|
|
690
691
|
const sdkVersion = getSdkVersion();
|
|
691
692
|
const buildOptions = {
|
|
692
693
|
sdkVersion,
|
|
693
|
-
isGame: false
|
|
694
|
+
isGame: false,
|
|
695
|
+
isWeb: false
|
|
694
696
|
};
|
|
695
697
|
return [
|
|
696
698
|
requireMicroFrontendRuntime(),
|