File tree 3 files changed +4
-10
lines changed 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 44
44
"webpack" : " ^4.30.0"
45
45
},
46
46
"scripts" : {
47
- "build" : " run-p build:cjs build:esm build:bundle && sh ../../scripts/postbuild.sh" ,
47
+ "build" : " run-p build:cjs build:esm build:bundle && bash ../../scripts/postbuild.sh" ,
48
48
"build:bundle" : " rollup --config" ,
49
49
"build:cjs" : " tsc -p tsconfig.cjs.json" ,
50
50
"build:dev" : " run-p build:cjs build:esm" ,
Original file line number Diff line number Diff line change @@ -257,6 +257,3 @@ export function makeConfigVariants(baseConfig) {
257
257
258
258
return configVariants ;
259
259
}
260
-
261
- export const BUILD_DIR = 'build' ;
262
- export const BUNDLES_DIR = 'bundles' ;
Original file line number Diff line number Diff line change 6
6
# in the copied package.json so that they align with the directory structure inside `build`.
7
7
8
8
BUILD_DIR=build
9
- CJS_DIR=dist
10
- ESM_DIR=esm
11
- TYPES_DIR=types
12
9
13
10
ASSETS=" README.md
14
11
LICENSE
@@ -27,16 +24,16 @@ for f in $ASSETS; do
27
24
done
28
25
29
26
# TEMPORARY (TODO remove in v7) copy types to esm and dist
30
- cp -r $BUILD_DIR /$TYPES_DIR / $BUILD_DIR /$CJS_DIR
31
- cp -r $BUILD_DIR /$TYPES_DIR / $BUILD_DIR /$ESM_DIR
27
+ cp -r $BUILD_DIR /types / $BUILD_DIR /dist
28
+ cp -r $BUILD_DIR /types / $BUILD_DIR /esm
32
29
33
30
# package.json modifications
34
31
35
32
# sed command to modify package.json entry points in build dir
36
33
# remove `BUILD_DIR` from `main`, `module` and `type` entry point paths
37
34
entryPointsCommand=" /\" (main|module|types)\" : .*,/s/$BUILD_DIR \///"
38
35
39
- # modify volta extends path
36
+ # sed command to modify volta extends path
40
37
# remove one `../` from the extension path of volta
41
38
voltaExtendsCommand=" /\" extends\" : \" \.\.\/\.\.\/\.\.\/package.json\" /s/\.\.\/\.\.\/\.\.\//\.\.\/\.\.\//"
42
39
You can’t perform that action at this time.
0 commit comments