rollipop 0.1.0-alpha.1 → 0.1.0-alpha.3

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 CHANGED
@@ -40,7 +40,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  //#endregion
41
41
  let _rollipop_common = require("@rollipop/common");
42
42
  let _rollipop_core = require("@rollipop/core");
43
- let _rollipop_dev_server = require("@rollipop/dev-server");
44
43
  let _commander_js_extra_typings = require("@commander-js/extra-typings");
45
44
  let es_toolkit = require("es-toolkit");
46
45
  let _inquirer_prompts = require("@inquirer/prompts");
@@ -57,7 +56,7 @@ async function runBuild(config, options) {
57
56
  //#region src/run-server.ts
58
57
  async function runServer(config, options) {
59
58
  const { port, host } = options;
60
- const devServer = await (0, _rollipop_dev_server.createDevServer)(config, options);
59
+ const devServer = await (0, _rollipop_core.createDevServer)(config, options);
61
60
  await devServer.instance.listen({
62
61
  port,
63
62
  host
@@ -67,7 +66,7 @@ async function runServer(config, options) {
67
66
 
68
67
  //#endregion
69
68
  //#region package.json
70
- var version = "0.1.0-alpha.1";
69
+ var version = "0.1.0-alpha.3";
71
70
 
72
71
  //#endregion
73
72
  //#region src/node/constants.ts
@@ -244,7 +243,7 @@ function setupInteractiveMode(options) {
244
243
 
245
244
  //#endregion
246
245
  //#region src/node/commands/start/index.ts
247
- const command = new _commander_js_extra_typings.Command("start").description("Start the React Native development server.").option("--config <string>", "Path to the CLI configuration file").option("--host <string>", "Host to start the development server on", _rollipop_dev_server.DEFAULT_HOST).option("--port <number>", "Port to start the development server on", Number, _rollipop_dev_server.DEFAULT_PORT).option("--projectRoot <path>", "Path to a custom project root", "").option("--reset-cache", "Removes cached files").option("--https", "Enables https connections to the server").option("--key <path>", "Path to custom SSL key").option("--cert <path>", "Path to custom SSL cert").option("--no-interactive", "Disables interactive mode").option("--client-logs", "Enable plain text JavaScript log streaming for all connected apps. This feature is deprecated and will be removed in future.", false).option("--watchFolders <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--assetPlugins <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--sourceExts <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--max-workers <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--transformer", UNSUPPORTED_OPTION_DESCRIPTION).option("--custom-log-reporter-path", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
246
+ const command = new _commander_js_extra_typings.Command("start").description("Start the React Native development server.").option("--config <string>", "Path to the CLI configuration file").option("--host <string>", "Host to start the development server on", _rollipop_core.DEFAULT_HOST).option("--port <number>", "Port to start the development server on", Number, _rollipop_core.DEFAULT_PORT).option("--projectRoot <path>", "Path to a custom project root", "").option("--reset-cache", "Removes cached files").option("--https", "Enables https connections to the server").option("--key <path>", "Path to custom SSL key").option("--cert <path>", "Path to custom SSL cert").option("--no-interactive", "Disables interactive mode").option("--client-logs", "Enable plain text JavaScript log streaming for all connected apps. This feature is deprecated and will be removed in future.", false).option("--watchFolders <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--assetPlugins <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--sourceExts <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--max-workers <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--transformer", UNSUPPORTED_OPTION_DESCRIPTION).option("--custom-log-reporter-path", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
248
247
  const cwd = process.cwd();
249
248
  const config = await Rollipop.loadConfig({
250
249
  cwd,
@@ -258,7 +257,6 @@ const command = new _commander_js_extra_typings.Command("start").description("St
258
257
  if (options.clientLogs === false) config.reporter = { update: es_toolkit.noop };
259
258
  let debuggerOpened = false;
260
259
  const server = await Rollipop.runServer(config, {
261
- projectRoot: cwd,
262
260
  port: options.port,
263
261
  host: options.host,
264
262
  https: options.https,
@@ -304,13 +302,13 @@ const Rollipop = Object.freeze({
304
302
  Object.defineProperty(exports, 'DEFAULT_HOST', {
305
303
  enumerable: true,
306
304
  get: function () {
307
- return _rollipop_dev_server.DEFAULT_HOST;
305
+ return _rollipop_core.DEFAULT_HOST;
308
306
  }
309
307
  });
310
308
  Object.defineProperty(exports, 'DEFAULT_PORT', {
311
309
  enumerable: true,
312
310
  get: function () {
313
- return _rollipop_dev_server.DEFAULT_PORT;
311
+ return _rollipop_core.DEFAULT_PORT;
314
312
  }
315
313
  });
316
314
  Object.defineProperty(exports, 'PluginUtils', {
package/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { resetCache } from "@rollipop/common";
2
- import { BuildOptions, BuildOptions as BuildOptions$1, Config, DefaultConfig, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
3
- import { DEFAULT_HOST, DEFAULT_PORT, DevServer, DevServer as DevServer$1, ServerOptions, ServerOptions as ServerOptions$1 } from "@rollipop/dev-server";
2
+ import { BuildOptions, BuildOptions as BuildOptions$1, Config, DEFAULT_HOST, DEFAULT_PORT, DefaultConfig, DevServer, DevServer as DevServer$1, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, ServerOptions, ServerOptions as ServerOptions$1, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
4
3
 
5
4
  //#region rolldown:runtime
6
5
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { resetCache } from "@rollipop/common";
2
- import { BuildOptions, BuildOptions as BuildOptions$1, Config, DefaultConfig, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
3
- import { DEFAULT_HOST, DEFAULT_PORT, DevServer, DevServer as DevServer$1, ServerOptions, ServerOptions as ServerOptions$1 } from "@rollipop/dev-server";
2
+ import { BuildOptions, BuildOptions as BuildOptions$1, Config, DEFAULT_HOST, DEFAULT_PORT, DefaultConfig, DevServer, DevServer as DevServer$1, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, ServerOptions, ServerOptions as ServerOptions$1, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
4
3
 
5
4
  //#region src/run-build.d.ts
6
5
  declare function runBuild(config: ResolvedConfig$1, options: BuildOptions$1): Promise<rolldown.OutputChunk>;
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { t as __export } from "./chunk-BAz01cYq.js";
2
2
  import { Logger, Logo, chalk, loadSettings, resetCache, saveSettings } from "@rollipop/common";
3
- import { Bundler, PluginUtils, defineConfig, loadConfig, mergeConfig } from "@rollipop/core";
4
- import { DEFAULT_HOST, DEFAULT_HOST as DEFAULT_HOST$1, DEFAULT_PORT, DEFAULT_PORT as DEFAULT_PORT$1, createDevServer } from "@rollipop/dev-server";
3
+ import { Bundler, DEFAULT_HOST, DEFAULT_HOST as DEFAULT_HOST$1, DEFAULT_PORT, DEFAULT_PORT as DEFAULT_PORT$1, PluginUtils, createDevServer, defineConfig, loadConfig, mergeConfig } from "@rollipop/core";
5
4
  import { Command, program } from "@commander-js/extra-typings";
6
5
  import { merge, noop, throttle } from "es-toolkit";
7
6
  import { select } from "@inquirer/prompts";
@@ -27,7 +26,7 @@ async function runServer(config, options) {
27
26
 
28
27
  //#endregion
29
28
  //#region package.json
30
- var version = "0.1.0-alpha.1";
29
+ var version = "0.1.0-alpha.3";
31
30
 
32
31
  //#endregion
33
32
  //#region src/node/constants.ts
@@ -218,7 +217,6 @@ const command = new Command("start").description("Start the React Native develop
218
217
  if (options.clientLogs === false) config.reporter = { update: noop };
219
218
  let debuggerOpened = false;
220
219
  const server = await Rollipop.runServer(config, {
221
- projectRoot: cwd,
222
220
  port: options.port,
223
221
  host: options.host,
224
222
  https: options.https,
@@ -0,0 +1,9 @@
1
+
2
+
3
+ var _rollipop_core_runtime = require("@rollipop/core/runtime");
4
+ Object.keys(_rollipop_core_runtime).forEach(function (k) {
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return _rollipop_core_runtime[k]; }
8
+ });
9
+ });
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime";
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime";
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollipop",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.3",
4
4
  "type": "module",
5
5
  "bin": "./bin/index.js",
6
6
  "exports": {
@@ -14,6 +14,16 @@
14
14
  "default": "./dist/index.cjs"
15
15
  }
16
16
  },
17
+ "./runtime": {
18
+ "import": {
19
+ "types": "./dist/runtime.d.ts",
20
+ "default": "./dist/runtime.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/runtime.d.cts",
24
+ "default": "./dist/runtime.cjs"
25
+ }
26
+ },
17
27
  "./package.json": "./package.json"
18
28
  },
19
29
  "files": [
@@ -41,7 +51,6 @@
41
51
  "@inquirer/prompts": "^8.1.0",
42
52
  "@rollipop/common": "workspace:*",
43
53
  "@rollipop/core": "workspace:*",
44
- "@rollipop/dev-server": "workspace:*",
45
54
  "commander": "^14.0.2",
46
55
  "es-toolkit": "catalog:"
47
56
  },