startupjs 0.55.4 → 0.55.8

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.
@@ -0,0 +1 @@
1
+ import '@startupjs/bundler/nodeRegister.mjs'
package/package.json CHANGED
@@ -1,29 +1,55 @@
1
1
  {
2
2
  "name": "startupjs",
3
3
  "type": "module",
4
- "version": "0.55.4",
4
+ "version": "0.55.8",
5
5
  "engines": {
6
6
  "node": ">= 14"
7
7
  },
8
8
  "description": "React Native + Web + Node.js full-stack framework",
9
9
  "main": "index.js",
10
+ "exports": {
11
+ ".": "./index.js",
12
+ "./*": "./*.js",
13
+ "./*.js": "./*.js",
14
+ "./babel": "./babel.cjs",
15
+ "./babel.cjs": "./babel.cjs",
16
+ "./startupjs.config": "./startupjs.config.cjs",
17
+ "./startupjs.config.cjs": "./startupjs.config.cjs",
18
+ "./package.json": "./package.json",
19
+ "./app": "./app/index.js",
20
+ "./app/*": "./app/*.js",
21
+ "./app/*.js": "./app/*.js",
22
+ "./bundler/*": "./bundler/*.js",
23
+ "./bundler/*.js": "./bundler/*.js",
24
+ "./bundler/metro.config": "./bundler/metro.config.cjs",
25
+ "./bundler/metro.config.cjs": "./bundler/metro.config.cjs",
26
+ "./bundler/webpack.web.config": "./bundler/webpack.web.config.cjs",
27
+ "./bundler/webpack.web.config.cjs": "./bundler/webpack.web.config.cjs",
28
+ "./i18n": "./i18n/index.js",
29
+ "./i18n/*": "./i18n/*.js",
30
+ "./i18n/*.js": "./i18n/*.js",
31
+ "./init": "./init/index.js",
32
+ "./init/*": "./init/*.js",
33
+ "./init/*.js": "./init/*.js"
34
+ },
10
35
  "bin": "./cli.js",
11
36
  "license": "MIT",
12
37
  "dependencies": {
13
- "@startupjs/app": "^0.55.2",
14
- "@startupjs/backend": "^0.55.1",
15
- "@startupjs/bundler": "^0.55.4",
16
- "@startupjs/cli": "^0.55.1",
17
- "@startupjs/hooks": "^0.55.0",
18
- "@startupjs/i18n": "^0.55.2",
19
- "@startupjs/init": "^0.55.2",
20
- "@startupjs/isomorphic-helpers": "^0.55.0",
21
- "@startupjs/orm": "^0.55.0",
22
- "@startupjs/patches": "^0.55.0",
23
- "@startupjs/react-sharedb": "^0.55.2",
24
- "@startupjs/server": "^0.55.1",
25
- "babel-preset-startupjs": "^0.55.4",
38
+ "@startupjs/app": "^0.55.8",
39
+ "@startupjs/backend": "^0.55.8",
40
+ "@startupjs/bundler": "^0.55.8",
41
+ "@startupjs/cli": "^0.55.8",
42
+ "@startupjs/hooks": "^0.55.8",
43
+ "@startupjs/i18n": "^0.55.8",
44
+ "@startupjs/init": "^0.55.8",
45
+ "@startupjs/isomorphic-helpers": "^0.55.8",
46
+ "@startupjs/orm": "^0.55.8",
47
+ "@startupjs/patches": "^0.55.8",
48
+ "@startupjs/react-sharedb": "^0.55.8",
49
+ "@startupjs/registry": "^0.55.8",
50
+ "@startupjs/server": "^0.55.8",
51
+ "babel-preset-startupjs": "^0.55.8",
26
52
  "react-native-web": "^0.18.0"
27
53
  },
28
- "gitHead": "6ad2cc77b50d4e45abc6383e135689e0c313af3b"
54
+ "gitHead": "75f57690644950055f8c8cb9afa265eb44f594fd"
29
55
  }
package/registry.js ADDED
@@ -0,0 +1 @@
1
+ export * from '@startupjs/registry'
@@ -1,5 +1,8 @@
1
1
  import { AppRegistry } from 'react-native'
2
+ import dummy from './startupjs.config' // has to be before Root import
2
3
  import Root from './Root'
3
4
  import { name as appName } from './app.json'
4
5
 
6
+ ;(() => {})(dummy) // to prevent dead code elimination
7
+
5
8
  AppRegistry.registerComponent(appName, () => Root)
@@ -1,7 +1,10 @@
1
1
  import { Suspense, createElement as el } from 'react'
2
2
  import { render } from 'react-dom'
3
+ import dummy from './startupjs.config' // has to be before Root import
3
4
  import Root from './Root'
4
5
 
6
+ ;(() => {})(dummy) // to prevent dead code elimination
7
+
5
8
  const ROOT_CONTAINER_ID = 'app'
6
9
 
7
10
  render(
@@ -1,2 +1,5 @@
1
- import run from './server/index.js'
1
+ import 'startupjs/nodeRegister' // has to be the first import since it sets up file transformations and loaders
2
+ // all imports below must be async imports in order for nodeRegister to work properly
3
+ await import('./startupjs.config.js') // has to be second import
4
+ const { default: run } = await import('./server/index.js')
2
5
  run()
@@ -0,0 +1,5 @@
1
+ import { createProject } from 'startupjs/registry'
2
+
3
+ export default createProject({
4
+ plugins: {}
5
+ })