File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,9 @@ set -ex
12
12
rm -rf ./dist
13
13
rm -rf ./deploy
14
14
15
- # For packaging for npm only, replace the TypeScript module format to commonjs.
16
- # Creates a tscongig.json.backup with the original file that we'll use to restore after building.
17
- sed -i.backup ' s|"module": ".+"|"module": "commonjs"|g' ./src/tsconfig.json
18
-
19
15
# Perform a build with the modified tsconfig.json.
20
16
ng build
21
17
22
- # Return tsconfig.json to its original state.
23
- mv -f ./src/tsconfig.json.backup ./src/tsconfig.json
24
-
25
18
# Inline the css and html into the component ts files.
26
19
./node_modules/gulp/bin/gulp.js inline-resources
27
20
Original file line number Diff line number Diff line change 23
23
System . config ( {
24
24
packages : {
25
25
'demo-app' : {
26
- format : 'register ' ,
26
+ format : 'cjs ' ,
27
27
defaultExtension : 'js'
28
28
} ,
29
29
'components' : {
30
- format : 'register ' ,
30
+ format : 'cjs ' ,
31
31
defaultExtension : 'js'
32
32
} ,
33
33
'core' : {
34
- format : 'register ' ,
34
+ format : 'cjs ' ,
35
35
defaultExtension : 'js'
36
36
} ,
37
37
}
Original file line number Diff line number Diff line change 4
4
"emitDecoratorMetadata" : true ,
5
5
"experimentalDecorators" : true ,
6
6
"mapRoot" : " " ,
7
- "module" : " system " ,
7
+ "module" : " commonjs " ,
8
8
"moduleResolution" : " node" ,
9
9
"noEmitOnError" : true ,
10
10
"noImplicitAny" : true ,
You can’t perform that action at this time.
0 commit comments