Skip to content

Commit

Permalink
Merge pull request #20516 from storybookjs/norbert/tsc-script-for-ang…
Browse files Browse the repository at this point in the history
…ular

Build: create a tsc prepare script, use it for angular framework, add ESM to angular dist
  • Loading branch information
ndelangen authored Jan 6, 2023
2 parents af847ba + 6eaffb2 commit c30fa6d
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 150 deletions.
7 changes: 6 additions & 1 deletion code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@
},
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"template/**/*",
"README.md",
"*.js",
"*.mjs",
"*.d.ts"
],
"scripts": {
"check": "../../../scripts/node_modules/.bin/tsc",
"prep": "rimraf dist && ../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
"prep": "../../../scripts/prepare/tsc.ts"
},
"dependencies": {
"@storybook/builder-webpack5": "7.0.0-beta.20",
Expand Down Expand Up @@ -122,5 +124,8 @@
"access": "public"
},
"builders": "dist/builders/builders.json",
"bundler": {
"tsConfig": "tsconfig.build.json"
},
"gitHead": "22701aedf564e467511887eb041f32ae0c96bcde"
}
Loading

0 comments on commit c30fa6d

Please sign in to comment.