@apps-in-toss/web-framework 1.10.0 → 1.10.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/cli/index.js +130 -2
- package/package.json +8 -7
package/dist/cli/index.js
CHANGED
|
@@ -52268,6 +52268,116 @@ var require_cross_spawn = __commonJS({
|
|
|
52268
52268
|
}
|
|
52269
52269
|
});
|
|
52270
52270
|
|
|
52271
|
+
// package.json
|
|
52272
|
+
var require_package = __commonJS({
|
|
52273
|
+
"package.json"(exports, module) {
|
|
52274
|
+
module.exports = {
|
|
52275
|
+
name: "@apps-in-toss/web-framework",
|
|
52276
|
+
type: "module",
|
|
52277
|
+
version: "1.10.1",
|
|
52278
|
+
description: "Web Framework for Apps In Toss",
|
|
52279
|
+
scripts: {
|
|
52280
|
+
typecheck: "tsc --noEmit",
|
|
52281
|
+
lint: "eslint .",
|
|
52282
|
+
build: "tsup",
|
|
52283
|
+
test: "vitest --no-watch",
|
|
52284
|
+
"test:no-parallel": "vitest --no-watch --config=vitest.no-parallel.config.mts"
|
|
52285
|
+
},
|
|
52286
|
+
main: "./dist-web/index.js",
|
|
52287
|
+
types: "./dist-web/index.d.ts",
|
|
52288
|
+
exports: {
|
|
52289
|
+
".": {
|
|
52290
|
+
types: "./dist-web/index.d.ts",
|
|
52291
|
+
default: "./dist-web/index.js"
|
|
52292
|
+
},
|
|
52293
|
+
"./config": {
|
|
52294
|
+
types: "./dist/config/index.d.ts",
|
|
52295
|
+
default: "./dist/config/index.js"
|
|
52296
|
+
},
|
|
52297
|
+
"./prebuilt/dev/ios": "./dist/prebuilt/dev.ios.js",
|
|
52298
|
+
"./prebuilt/dev/android": "./dist/prebuilt/dev.android.js",
|
|
52299
|
+
"./prebuilt/prod/ios": "./dist/prebuilt/prod.ios.js",
|
|
52300
|
+
"./prebuilt/prod/android": "./dist/prebuilt/prod.android.js",
|
|
52301
|
+
"./package.json": "./package.json"
|
|
52302
|
+
},
|
|
52303
|
+
bin: {
|
|
52304
|
+
ait: "./ait.js",
|
|
52305
|
+
granite: "./bin.js"
|
|
52306
|
+
},
|
|
52307
|
+
files: [
|
|
52308
|
+
"dist",
|
|
52309
|
+
"hermesc",
|
|
52310
|
+
"bin.js",
|
|
52311
|
+
"dist-web",
|
|
52312
|
+
"config.d.ts"
|
|
52313
|
+
],
|
|
52314
|
+
devDependencies: {
|
|
52315
|
+
"@apps-in-toss/ait-format": "^1.0.0",
|
|
52316
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
52317
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
52318
|
+
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
|
52319
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
52320
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
52321
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
52322
|
+
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
|
|
52323
|
+
"@babel/preset-env": "^7.15.0",
|
|
52324
|
+
"@babel/preset-react": "^7.16.7",
|
|
52325
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
52326
|
+
"@babel/runtime": "7.18.9",
|
|
52327
|
+
"@babel/traverse": "^7.26.9",
|
|
52328
|
+
"@babel/types": "^7.26.9",
|
|
52329
|
+
"@clack/prompts": "^0.10.0",
|
|
52330
|
+
"@hono/node-server": "^1.13.8",
|
|
52331
|
+
"@hono/node-ws": "^1.1.3",
|
|
52332
|
+
"@ryoppippi/unplugin-typia": "^2.6.5",
|
|
52333
|
+
"@toss/tds-react-native": "1.3.6",
|
|
52334
|
+
"@types/babel__core": "^7.20.5",
|
|
52335
|
+
"@types/babel__traverse": "^7",
|
|
52336
|
+
"@types/debug": "^4",
|
|
52337
|
+
"@types/kill-port": "2.0.1",
|
|
52338
|
+
"@types/node": "^22.10.2",
|
|
52339
|
+
"@types/react": "18.3.3",
|
|
52340
|
+
"@types/yauzl": "^2.10.3",
|
|
52341
|
+
clipanion: "^4.0.0-rc.4",
|
|
52342
|
+
cosmiconfig: "^9.0.0",
|
|
52343
|
+
"cosmiconfig-typescript-loader": "^5.1.0",
|
|
52344
|
+
"es-toolkit": "^1.32.0",
|
|
52345
|
+
eslint: "^9.7.0",
|
|
52346
|
+
execa: "9.3.0",
|
|
52347
|
+
"find-up-simple": "^1.0.1",
|
|
52348
|
+
hono: "^4.7.4",
|
|
52349
|
+
"kill-port": "2.0.1",
|
|
52350
|
+
picocolors: "^1.1.1",
|
|
52351
|
+
react: "18.2.0",
|
|
52352
|
+
"react-native": "0.72.6",
|
|
52353
|
+
tsup: "^8.3.5",
|
|
52354
|
+
typescript: "5.8.3",
|
|
52355
|
+
typia: "^9.3.0",
|
|
52356
|
+
uuidv7: "^1.0.2",
|
|
52357
|
+
vitest: "^3.0.5",
|
|
52358
|
+
"wait-port": "^1.1.0",
|
|
52359
|
+
"workspace-tools": "^0.38.2",
|
|
52360
|
+
zod: "3.24.4"
|
|
52361
|
+
},
|
|
52362
|
+
dependencies: {
|
|
52363
|
+
"@apps-in-toss/bridge-core": "workspace:*",
|
|
52364
|
+
"@apps-in-toss/cli": "workspace:*",
|
|
52365
|
+
"@apps-in-toss/framework": "workspace:*",
|
|
52366
|
+
"@apps-in-toss/plugins": "workspace:*",
|
|
52367
|
+
"@apps-in-toss/web-analytics": "workspace:*",
|
|
52368
|
+
"@apps-in-toss/web-bridge": "workspace:*",
|
|
52369
|
+
"@babel/core": "7.23.9",
|
|
52370
|
+
"@granite-js/cli": "0.1.31",
|
|
52371
|
+
"@granite-js/mpack": "0.1.31",
|
|
52372
|
+
"@granite-js/native": "0.1.31",
|
|
52373
|
+
"@granite-js/plugin-core": "0.1.31",
|
|
52374
|
+
"@granite-js/react-native": "0.1.31",
|
|
52375
|
+
"@granite-js/utils": "0.1.31"
|
|
52376
|
+
}
|
|
52377
|
+
};
|
|
52378
|
+
}
|
|
52379
|
+
});
|
|
52380
|
+
|
|
52271
52381
|
// ../../../.yarn/__virtual__/ws-virtual-a7b6462606/0/cache/ws-npm-8.18.1-166778b26f-e498965d69.zip/node_modules/ws/lib/constants.js
|
|
52272
52382
|
var require_constants2 = __commonJS({
|
|
52273
52383
|
"../../../.yarn/__virtual__/ws-virtual-a7b6462606/0/cache/ws-npm-8.18.1-166778b26f-e498965d69.zip/node_modules/ws/lib/constants.js"(exports, module) {
|
|
@@ -65225,6 +65335,13 @@ var {
|
|
|
65225
65335
|
getCancelSignal: getCancelSignal2
|
|
65226
65336
|
} = getIpcExport();
|
|
65227
65337
|
|
|
65338
|
+
// src/cli/utils/getSdkVersion.ts
|
|
65339
|
+
init_esm_shims();
|
|
65340
|
+
function getSdkVersion() {
|
|
65341
|
+
const packageJson = require_package();
|
|
65342
|
+
return packageJson.version;
|
|
65343
|
+
}
|
|
65344
|
+
|
|
65228
65345
|
// src/constants.ts
|
|
65229
65346
|
init_esm_shims();
|
|
65230
65347
|
var REACT_NATIVE_VERSION = "0.72.6";
|
|
@@ -65520,7 +65637,7 @@ async function getWebDistFiles(webDistDir) {
|
|
|
65520
65637
|
}
|
|
65521
65638
|
return additionalFilesToZip;
|
|
65522
65639
|
}
|
|
65523
|
-
function appsInTossCreateArtifact(deploymentId) {
|
|
65640
|
+
function appsInTossCreateArtifact(deploymentId, buildOption) {
|
|
65524
65641
|
const packageRoot = getPackageRoot2();
|
|
65525
65642
|
return {
|
|
65526
65643
|
name: "apps-in-toss:create-artifact",
|
|
@@ -65536,6 +65653,8 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65536
65653
|
const artifactOutfile = await createArtifact({
|
|
65537
65654
|
reactNativeVersion: REACT_NATIVE_VERSION,
|
|
65538
65655
|
deploymentId,
|
|
65656
|
+
sdkVersion: buildOption.sdkVersion,
|
|
65657
|
+
isGame: buildOption.isGame,
|
|
65539
65658
|
bundleFiles: buildResults.filter(isBuildSuccess).map(({ outfile, sourcemapOutfile, platform: platform2 }) => [
|
|
65540
65659
|
{
|
|
65541
65660
|
path: outfile,
|
|
@@ -65569,7 +65688,16 @@ function appsInTossWeb(deploymentId, options) {
|
|
|
65569
65688
|
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
65570
65689
|
process.exit(1);
|
|
65571
65690
|
}
|
|
65572
|
-
|
|
65691
|
+
const sdkVersion = getSdkVersion();
|
|
65692
|
+
const buildOptions = {
|
|
65693
|
+
sdkVersion,
|
|
65694
|
+
isGame: result.data.webViewProps?.type === "game"
|
|
65695
|
+
};
|
|
65696
|
+
return [
|
|
65697
|
+
appsInTossAppJson(options),
|
|
65698
|
+
appsInTossWebBuild(options),
|
|
65699
|
+
appsInTossCreateArtifact(deploymentId, buildOptions)
|
|
65700
|
+
];
|
|
65573
65701
|
}
|
|
65574
65702
|
|
|
65575
65703
|
// src/plugins/resolvePlugins.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.1",
|
|
5
5
|
"description": "Web Framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"config.d.ts"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@apps-in-toss/ait-format": "^1.0.0",
|
|
42
43
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
43
44
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
44
45
|
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
|
@@ -86,12 +87,12 @@
|
|
|
86
87
|
"zod": "3.24.4"
|
|
87
88
|
},
|
|
88
89
|
"dependencies": {
|
|
89
|
-
"@apps-in-toss/bridge-core": "1.10.
|
|
90
|
-
"@apps-in-toss/cli": "1.10.
|
|
91
|
-
"@apps-in-toss/framework": "1.10.
|
|
92
|
-
"@apps-in-toss/plugins": "1.10.
|
|
93
|
-
"@apps-in-toss/web-analytics": "1.10.
|
|
94
|
-
"@apps-in-toss/web-bridge": "1.10.
|
|
90
|
+
"@apps-in-toss/bridge-core": "1.10.1",
|
|
91
|
+
"@apps-in-toss/cli": "1.10.1",
|
|
92
|
+
"@apps-in-toss/framework": "1.10.1",
|
|
93
|
+
"@apps-in-toss/plugins": "1.10.1",
|
|
94
|
+
"@apps-in-toss/web-analytics": "1.10.1",
|
|
95
|
+
"@apps-in-toss/web-bridge": "1.10.1",
|
|
95
96
|
"@babel/core": "7.23.9",
|
|
96
97
|
"@granite-js/cli": "0.1.31",
|
|
97
98
|
"@granite-js/mpack": "0.1.31",
|