migrate addonstoryshots away from the prepare script and use tsc directly similar to frameworks/angular

Co-authored-by: Kasper Peulen <kasperpeulen@gmail.com>
This commit is contained in:
Norbert de Langen 2022-12-08 09:40:39 +01:00
parent 268c23c7fb
commit c558aef3d9
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
5 changed files with 51 additions and 6 deletions

View File

@ -31,10 +31,7 @@
"*.d.ts"
],
"scripts": {
"build-storybook": "sb build",
"example": "jest storyshot.test",
"prep": "node ../../../../scripts/prepare.js",
"storybook": "yarn sb dev -p 6006"
"prep": "rimraf dist && ../../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
},
"dependencies": {
"@jest/transform": "^29.3.1",
@ -71,6 +68,7 @@
"jest-preset-angular": "^8.3.2",
"jest-vue-preprocessor": "^1.7.1",
"react-test-renderer": "^16",
"rimraf": "^3.0.2",
"rxjs": "^6.6.3",
"vue-jest": "^5.0.0-alpha.8"
},

View File

@ -0,0 +1,22 @@
{
"extends": "../../tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"lib": ["es2020", "dom"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": true,
"outDir": "dist",
"types": ["node"],
"skipLibCheck": true,
"resolveJsonModule": true,
"allowJs": true,
"pretty": true,
"noErrorTruncation": true,
"listEmittedFiles": false,
"noUnusedLocals": false
},
"include": ["src/**/*", "src/**/*.json"]
}

View File

@ -30,7 +30,7 @@
"*.d.ts"
],
"scripts": {
"prep": "node ../../../../scripts/prepare.js"
"prep": "rimraf dist && ../../../../scripts/node_modules/.bin/tsc --project tsconfig.build.json && echo \"Preventing passing flags to tsc\""
},
"dependencies": {
"@axe-core/puppeteer": "^4.2.0",
@ -42,7 +42,8 @@
},
"devDependencies": {
"@types/puppeteer": "^5.4.0",
"puppeteer": "^2.0.0 || ^3.0.0"
"puppeteer": "^2.0.0 || ^3.0.0",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"@storybook/addon-storyshots": "7.0.0-alpha.62",

View File

@ -0,0 +1,22 @@
{
"extends": "../../tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"lib": ["es2020", "dom"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": true,
"outDir": "dist",
"types": ["node"],
"skipLibCheck": true,
"resolveJsonModule": true,
"allowJs": true,
"pretty": true,
"noErrorTruncation": true,
"listEmittedFiles": false,
"noUnusedLocals": false
},
"include": ["src/**/*", "src/**/*.json"]
}

View File

@ -5464,6 +5464,7 @@ __metadata:
"@types/puppeteer": ^5.4.0
jest-image-snapshot: ^6.0.0
puppeteer: ^2.0.0 || ^3.0.0
rimraf: ^3.0.2
peerDependencies:
"@storybook/addon-storyshots": 7.0.0-alpha.62
puppeteer: ">=2.0.0"
@ -5507,6 +5508,7 @@ __metadata:
pretty-format: ^29.0.0
react-test-renderer: ^16
read-pkg-up: ^7.0.1
rimraf: ^3.0.2
rxjs: ^6.6.3
ts-dedent: ^2.0.0
vue-jest: ^5.0.0-alpha.8