Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from storybookjs/revert-36-norbert/use-tsup
Browse files Browse the repository at this point in the history
Revert "migrate to tsup"
  • Loading branch information
ndelangen committed May 1, 2023
2 parents 0985aec + 30bcbc1 commit 5fa3453
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 44 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/linear-export.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Export to linear

on:
issues:
types: [labeled]
pull_request:
types: [labeled]

jobs:
trigger:
if: github.event.label.name == 'linear'
name: Export to linear
runs-on: ubuntu-latest
steps:
# - uses: hmarr/debug-action@v2
- name: Linear action
uses: shilman/linear-action@v1
with:
ghIssueNumber: ${{ github.event.number || github.event.issue.number }}
ghRepoOwner: ${{ github.event.repository.owner.login }}
ghRepoName: ${{ github.event.repository.name }}
ghToken: ${{ secrets.LINEAR_GH_TOKEN }}
linearIssuePrefix: Testing-Library
linearLabel: Storybook
linearPRLabel: PR
linearTeam: SB
linearApiKey: ${{ secrets.LINEAR_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 16.x
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 14.x

- name: Install dependencies
run: yarn
Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
"type": "git",
"url": "https://github.com/storybookjs/testing-library.git"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"license": "MIT",
"scripts": {
"build": "tsup",
"prebuild": "rimraf dist",
"build": "yarn build:esm && yarn build:cjs",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"prepack": "yarn build",
"prerelease": "yarn build",
"release": "auto shipit"
Expand All @@ -19,26 +22,25 @@
"files": [
"dist/**/*"
],
"types": "dist/index.d.ts",
"types": "dist/types/index.d.ts",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@storybook/client-logger": "future",
"@storybook/instrumenter": "future",
"@testing-library/dom": "^8.3.0",
"@testing-library/user-event": "^13.2.1",
"ts-dedent": "^2.2.0"
},
"devDependencies": {
"@storybook/client-logger": "future",
"@storybook/instrumenter": "future",
"@auto-it/first-time-contributor": "^10.37.6",
"@auto-it/released": "^10.37.6",
"@storybook/linter-config": "^3.1.2",
"@types/react": "*",
"auto": "^10.37.6",
"util": "^0.12.5",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
"rimraf": "^3.0.2",
"typescript": "^4.4.3"
},
"auto": {
"prereleaseBranches": [
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"noImplicitAny": true,
"target": "es5",
"allowJs": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "./dist/types"
},
"include": ["src/*.ts"],
"exclude": ["node_modules"]
}
7 changes: 7 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/cjs",
"module": "CommonJS",
},
}
9 changes: 9 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/esm",
"module": "ES6",
"target": "ES5",
},
}
9 changes: 0 additions & 9 deletions tsconfig.json

This file was deleted.

24 changes: 0 additions & 24 deletions tsup.config.ts

This file was deleted.

0 comments on commit 5fa3453

Please sign in to comment.