@plasmicapp/loader-nextjs 1.0.266 → 1.0.268

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/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "1.0.266",
2
+ "version": "1.0.268",
3
3
  "license": "MIT",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
4
+ "types": "./dist/index.d.ts",
5
+ "main": "./dist/index.js",
6
6
  "exports": {
7
7
  ".": {
8
8
  "types": "./dist/index.d.ts",
9
9
  "default": "./dist/index.js"
10
10
  },
11
11
  "./react-server": {
12
- "types": "./dist-react-server/index-react-server.d.ts",
13
- "default": "./dist-react-server/index.js"
12
+ "types": "./dist/react-server.d.ts",
13
+ "default": "./dist/react-server.js"
14
14
  },
15
15
  "./react-server-conditional": {
16
16
  "react-server": {
17
- "types": "./dist-react-server/index-react-server.d.ts",
18
- "default": "./dist-react-server/index.js"
17
+ "types": "./dist/react-server.d.ts",
18
+ "default": "./dist/react-server.js"
19
19
  },
20
20
  "default": {
21
21
  "types": "./dist/index.d.ts",
@@ -29,7 +29,6 @@
29
29
  },
30
30
  "files": [
31
31
  "dist",
32
- "dist-react-server",
33
32
  "index.d.ts",
34
33
  "react-server.d.ts",
35
34
  "react-server-conditional.d.ts",
@@ -40,17 +39,17 @@
40
39
  "node": ">=10"
41
40
  },
42
41
  "scripts": {
43
- "start": "tsdx watch",
44
- "build": "yarn build:react-server && yarn build:default",
45
- "build:default": "tsdx build --entry src/index.tsx",
46
- "build:react-server": "rm -rf dist-react-server && tsdx build --entry src/index-react-server.ts && mv dist dist-react-server",
47
- "postbuild": "yarn postbuild:react-server && yarn postbuild:default",
48
- "postbuild:default": "node ../../print-module-api.js ./packages/loader-nextjs/dist/index.js > index-api.txt",
49
- "postbuild:react-server": "node ../../print-module-api.js ./packages/loader-nextjs/dist-react-server/index.js > index-react-server-api.txt",
42
+ "build": "yarn build:types && yarn build:index && yarn build:react-server",
43
+ "build:types": "yarn tsc",
44
+ "build:index": "node ../../build.mjs ./src/index.tsx --use-client",
45
+ "build:react-server": "node ../../build.mjs ./src/react-server.ts",
46
+ "postbuild": "yarn postbuild:index && yarn postbuild:react-server",
47
+ "postbuild:index": "node ../../print-module-api.js ./packages/loader-nextjs/dist/index.js > index-api.txt",
48
+ "postbuild:react-server": "node ../../print-module-api.js ./packages/loader-nextjs/dist/react-server.js > index-react-server-api.txt",
50
49
  "yalcp": "yalc publish --push",
51
- "test": "tsdx test --passWithNoTests",
52
- "coverage": "tsdx test --coverage --passWithNoTests",
53
- "lint": "tsdx lint",
50
+ "test": "jest packages/loader-nextjs --config=../../jest.config.js --passWithNoTests",
51
+ "coverage": "yarn test --coverage",
52
+ "lint": "eslint",
54
53
  "prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
55
54
  "size": "size-limit",
56
55
  "analyze": "size-limit --why"
@@ -60,54 +59,25 @@
60
59
  "react": ">=16.8.0",
61
60
  "react-dom": ">=16.8.0"
62
61
  },
63
- "husky": {
64
- "hooks": {
65
- "pre-commit": "tsdx lint"
66
- }
67
- },
68
- "prettier": {
69
- "printWidth": 80,
70
- "semi": true,
71
- "singleQuote": true,
72
- "trailingComma": "es5"
73
- },
74
62
  "name": "@plasmicapp/loader-nextjs",
75
63
  "author": "Chung Wu",
76
- "module": "dist/loader-nextjs.esm.js",
77
64
  "size-limit": [
78
65
  {
79
- "path": "dist/loader-nextjs.cjs.production.min.js",
80
- "limit": "15 KB"
81
- },
82
- {
83
- "path": "dist/loader-nextjs.esm.js",
84
- "limit": "15 KB"
85
- },
86
- {
87
- "path": "dist-react-server/loader-nextjs.cjs.production.min.js",
66
+ "path": "dist/index.js",
88
67
  "limit": "15 KB"
89
68
  },
90
69
  {
91
- "path": "dist-react-server/loader-nextjs.esm.js",
70
+ "path": "dist/react-server.js",
92
71
  "limit": "15 KB"
93
72
  }
94
73
  ],
95
74
  "devDependencies": {
96
- "@rollup/plugin-commonjs": "^19.0.0",
97
- "@rollup/plugin-json": "^4.1.0",
98
- "@rollup/plugin-node-resolve": "^13.0.0",
99
75
  "@size-limit/preset-small-lib": "^4.11.0",
100
76
  "@types/react": "^18.0.27",
101
77
  "@types/react-dom": "^18.0.10",
102
78
  "husky": "^6.0.0",
103
79
  "next": "^11.0.0",
104
- "rollup": "^2.47.0",
105
- "rollup-plugin-dts": "^3.0.1",
106
- "rollup-plugin-typescript2": "^0.30.0",
107
- "size-limit": "^4.11.0",
108
- "tsdx": "^0.14.1",
109
- "tslib": "^2.2.0",
110
- "typescript": "^4.3.2"
80
+ "size-limit": "^4.11.0"
111
81
  },
112
82
  "dependencies": {
113
83
  "@plasmicapp/loader-core": "1.0.100",
@@ -116,5 +86,5 @@
116
86
  "@plasmicapp/watcher": "1.0.72",
117
87
  "server-only": "0.0.1"
118
88
  },
119
- "gitHead": "8199282308093c1259107c22eb9e031ca8e6d5a0"
89
+ "gitHead": "30e8db6a6a212aba7bb77c6ec124685a81bc6004"
120
90
  }
@@ -1,4 +1,6 @@
1
- export * from './dist-react-server/index-react-server';
1
+ import { initPlasmicLoader } from './dist/index';
2
+
2
3
  export * from './dist/index';
4
+ export * from './dist/react-server';
3
5
  // Disambiguate initPlasmicLoader, prefer the "default" version since it is more permissive.
4
- export { initPlasmicLoader } from './dist/index';
6
+ export { initPlasmicLoader };
package/react-server.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './dist-react-server/index-react-server';
1
+ export * from './dist/react-server';