Skip to content

Commit 41a03d7

Browse files
committed
Minor fixes
1 parent dbb41c2 commit 41a03d7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/test-multiple-builds.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ jobs:
2626
- name: Patch for DEV-ONLY
2727
if: ${{ matrix.env == 'development' }}
2828
run: |
29-
sed -i~ -e "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it('/" tests/*.tsx
30-
sed -i~ -e "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it.skip('/" tests/*.tsx
29+
sed -i~ "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it('/" tests/*.tsx
30+
sed -i~ "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it.skip('/" tests/*.tsx
3131
- name: Patch for PRD-ONLY
3232
if: ${{ matrix.env == 'production' }}
3333
run: |
34-
sed -i~ -e "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it('/" tests/*.tsx
35-
sed -i~ -e "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it.skip('/" tests/*.tsx
34+
sed -i~ "s/it[.a-zA-Z]*('\[PRD-ONLY\]/it('/" tests/*.tsx
35+
sed -i~ "s/it[.a-zA-Z]*('\[DEV-ONLY\]/it.skip('/" tests/*.tsx
3636
- name: Patch for CJS
3737
if: ${{ matrix.build == 'cjs' }}
3838
run: |
39-
sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\1.js/" package.jsonx
39+
sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\1.js/" package.json
4040
- name: Patch for ESM
4141
if: ${{ matrix.build == 'esm' }}
4242
run: |
43-
sed -i~ -e "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\/esm\1.js/" package.json
44-
sed -i~ -e "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx
43+
sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\/esm\1.js/" package.json
44+
sed -i~ "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx
4545
env:
4646
NODE_ENV: ${{ matrix.env }}
4747
- name: Test ${{ matrix.build }} ${{ matrix.env }}

.github/workflows/test-old-typescript.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- run: yarn build
3434
- name: Patch for Old TS
3535
run: |
36-
sed -i~ -e 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json
37-
sed -i~ -e 's/"allowImportingTsExtensions": true,//' tsconfig.json
38-
sed -i~ -e 's/"zustand": \["\.\/src\/index\.ts"\],/"zustand": [".\/dist\/index.d.ts"],/' tsconfig.json
39-
sed -i~ -e 's/"zustand\/\*": \["\.\/src\/\*\.ts"\]/"zustand\/*": [".\/dist\/*.d.ts"]/' tsconfig.json
40-
sed -i~ -e 's/"include": .*/"include": ["src\/types.d.ts", "dist\/**\/*", "tests\/**\/*"],/' tsconfig.json
36+
sed -i~ 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json
37+
sed -i~ 's/"allowImportingTsExtensions": true,//' tsconfig.json
38+
sed -i~ 's/"zustand": \["\.\/src\/index\.ts"\],/"zustand": [".\/dist\/index.d.ts"],/' tsconfig.json
39+
sed -i~ 's/"zustand\/\*": \["\.\/src\/\*\.ts"\]/"zustand\/*": [".\/dist\/*.d.ts"]/' tsconfig.json
40+
sed -i~ 's/"include": .*/"include": ["src\/types.d.ts", "dist\/**\/*", "tests\/**\/*"],/' tsconfig.json
4141
- name: Test ${{ matrix.typescript }}
4242
run: |
4343
yarn add -D typescript@${{ matrix.typescript }}

0 commit comments

Comments
 (0)