File tree Expand file tree Collapse file tree 7 files changed +46
-18
lines changed
Expand file tree Collapse file tree 7 files changed +46
-18
lines changed Original file line number Diff line number Diff line change 66 " **/*.js" ,
77 " **/*.d.ts"
88 ],
9+ "main" : " dist/cjs/index.js" ,
10+ "module" : " dist/esm/index.js" ,
11+ "types" : " dist/cjs/index.d.ts" ,
12+ "exports" : {
13+ "." : {
14+ "types" : " ./dist/cjs/index.d.ts" ,
15+ "import" : " ./dist/esm/index.js" ,
16+ "require" : " ./dist/cjs/index.js" ,
17+ "default" : " ./dist/cjs/index.js"
18+ },
19+ "./create-server-context" : {
20+ "types" : " ./dist/cjs/create-server-context.d.ts" ,
21+ "import" : " ./dist/esm/create-server-context.js" ,
22+ "require" : " ./dist/cjs/create-server-context.js" ,
23+ "default" : " ./dist/cjs/create-server-context.js"
24+ },
25+ "./get-server-context" : {
26+ "types" : " ./dist/cjs/get-server-context.d.ts" ,
27+ "import" : " ./dist/esm/get-server-context.js" ,
28+ "require" : " ./dist/cjs/get-server-context.js" ,
29+ "default" : " ./dist/cjs/get-server-context.js"
30+ }
31+ },
932 "scripts" : {
10- "build" : " tsc"
33+ "build" : " tsc && tsc --project tsconfig.esm.json "
1134 },
1235 "keywords" : [
1336 " next" ,
Original file line number Diff line number Diff line change 1+ export { default as createServerContext } from "./create-server-context" ;
2+ export { default as getServerContext } from "./get-server-context" ;
3+ export * from "./types" ;
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ "module" : " ESNext" ,
5+ "moduleResolution" : " bundler" ,
6+ "outDir" : " dist/esm" ,
7+ "declarationDir" : " dist/esm"
8+ },
9+ "include" : [" src/**/*" ]
10+ }
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
3- "target" : " ESNext" ,
4- "module" : " CommonJS" ,
3+ "target" : " es2019" ,
4+ "module" : " commonjs" ,
5+ "jsx" : " react" ,
56 "esModuleInterop" : true ,
6- "moduleResolution" : " Node" ,
77 "forceConsistentCasingInFileNames" : true ,
88 "strict" : true ,
99 "skipLibCheck" : true ,
10- "outDir" : " . " ,
10+ "outDir" : " dist/cjs " ,
1111 "rootDir" : " src" ,
1212 "declaration" : true ,
13- "declarationDir" : " ." ,
14- "jsx" : " react"
13+ "declarationDir" : " dist/cjs"
1514 },
16- "include" : [
17- " env.d.ts" ,
18- " src/**/*.ts" ,
19- " src/**/*.tsx"
20- ],
21- "exclude" : [
22- " node_modules"
23- ]
15+ "include" : [" src/**/*" ]
2416}
Original file line number Diff line number Diff line change 1- import createServerContext from "@nimpl/context/create-server- context" ;
1+ import { createServerContext } from "@nimpl/context" ;
22
33export const InsideContext = createServerContext ( { inside : "inside default value" } ) ;
Original file line number Diff line number Diff line change 88 "test" : " playwright test"
99 },
1010 "dependencies" : {
11- "@nimpl/context" : " link:../../package " ,
11+ "@nimpl/context" : " workspace:* " ,
1212 "next" : " canary" ,
1313 "react" : " canary" ,
1414 "react-dom" : " canary"
You can’t perform that action at this time.
0 commit comments