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
1212rm -rf ./dist
1313rm -rf ./deploy
1414
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-
1915# Perform a build with the modified tsconfig.json.
2016ng build
2117
22- # Return tsconfig.json to its original state.
23- mv -f ./src/tsconfig.json.backup ./src/tsconfig.json
24-
2518# Inline the css and html into the component ts files.
2619./node_modules/gulp/bin/gulp.js inline-resources
2720
Original file line number Diff line number Diff line change 2323 System . config ( {
2424 packages : {
2525 'demo-app' : {
26- format : 'register ' ,
26+ format : 'cjs ' ,
2727 defaultExtension : 'js'
2828 } ,
2929 'components' : {
30- format : 'register ' ,
30+ format : 'cjs ' ,
3131 defaultExtension : 'js'
3232 } ,
3333 'core' : {
34- format : 'register ' ,
34+ format : 'cjs ' ,
3535 defaultExtension : 'js'
3636 } ,
3737 }
Original file line number Diff line number Diff line change 44 "emitDecoratorMetadata" : true ,
55 "experimentalDecorators" : true ,
66 "mapRoot" : " " ,
7- "module" : " system " ,
7+ "module" : " commonjs " ,
88 "moduleResolution" : " node" ,
99 "noEmitOnError" : true ,
1010 "noImplicitAny" : true ,
You can’t perform that action at this time.
0 commit comments