File tree Expand file tree Collapse file tree 5 files changed +22
-11
lines changed Expand file tree Collapse file tree 5 files changed +22
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " open-next " : patch
3
+ ---
4
+
5
+ npm publish root directory
Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
pnpm build
5
- cp packages/open-next/package.json packages/open-next/dist/package.json
6
- cp README.md packages/open-next/dist/ README.md
7
- sed -i.bak -e ' 2,5d' packages/open-next/dist/package.json
5
+ # cp packages/open-next/package.json packages/open-next/dist/package.json
6
+ cp README.md packages/open-next/README.md
7
+ # sed -i.bak -e '2,5d' packages/open-next/dist/package.json
8
8
pnpm changeset publish
Original file line number Diff line number Diff line change 4
4
pnpm build
5
5
sed -i.bak -e ' 3,6d' .changeset/config.json
6
6
pnpm changeset version --snapshot
7
- cp packages/open-next/package.json packages/open-next/dist/package.json
8
- sed -i.bak -e ' 2,5d' packages/open-next/dist/package.json
7
+ # cp packages/open-next/package.json packages/open-next/dist/package.json
8
+ # sed -i.bak -e '2,5d' packages/open-next/dist/package.json
9
9
pnpm changeset publish --no-git-tag --tag=snapshot
10
10
cp .changeset/config.json.bak .changeset/config.json
11
11
git checkout ' **/package.json' ' **/CHANGELOG.md' ' .changeset'
Original file line number Diff line number Diff line change 1
1
{
2
2
"publishConfig" : {
3
- "directory" : " dist" ,
4
3
"access" : " public"
5
4
},
6
5
"name" : " open-next" ,
7
6
"version" : " 1.3.7" ,
8
7
"bin" : {
9
- "open-next" : " ./index.js"
8
+ "open-next" : " ./dist/ index.js"
10
9
},
11
10
"license" : " MIT" ,
12
11
"type" : " module" ,
13
12
"description" : " Open source Next.js serverless adapter" ,
14
13
"homepage" : " https://open-next.js.org" ,
15
- "main" : " index.js" ,
14
+ "main" : " ./dist/index.js" ,
15
+ "module" : " ./dist/index.js" ,
16
+ "types" : " ./dist/index.d.ts" ,
16
17
"scripts" : {
17
- "build" : " rm -rf dist/assets && mkdir -p dist && cp -r assets dist/assets && tsc" ,
18
+ "build" : " tsc" ,
18
19
"dev" : " tsc -w"
19
20
},
20
21
"keywords" : [],
21
22
"author" : " " ,
23
+ "files" : [
24
+ " dist" ,
25
+ " assets" ,
26
+ " README.md"
27
+ ],
22
28
"dependencies" : {
23
29
"@aws-sdk/client-lambda" : " ^3.234.0" ,
24
30
"@aws-sdk/client-s3" : " ^3.234.0" ,
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function printHeader(header: string) {
110
110
}
111
111
112
112
function printVersion ( ) {
113
- const pathToPackageJson = path . join ( __dirname , "./package.json" ) ;
113
+ const pathToPackageJson = path . join ( __dirname , ".. /package.json" ) ;
114
114
const pkg = JSON . parse ( fs . readFileSync ( pathToPackageJson , "utf-8" ) ) ;
115
115
console . info ( `Using v${ pkg . version } ` ) ;
116
116
}
@@ -327,7 +327,7 @@ function createImageOptimizationBundle() {
327
327
328
328
// Copy over sharp node modules
329
329
fs . cpSync (
330
- path . join ( __dirname , "./assets/sharp-node-modules" ) ,
330
+ path . join ( __dirname , ".. /assets/sharp-node-modules" ) ,
331
331
path . join ( outputPath , "node_modules" ) ,
332
332
{ recursive : true }
333
333
) ;
You can’t perform that action at this time.
0 commit comments