Skip to content

Commit

Permalink
hack node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 5, 2024
1 parent 477e447 commit 94be18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-multiple-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
if: ${{ matrix.build == 'cjs' }}
run: |
sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\1.js')/" vitest.config.ts
sed -i~ "s/\"valtio/vanilla\"/\"..\/..\/..\/dist\/vanilla.js\"/" node_modules/derive-valtio/dist/index.umd.js
- name: Patch for ESM
if: ${{ matrix.build == 'esm' }}
run: |
Expand All @@ -52,6 +53,7 @@ jobs:
if: ${{ matrix.build == 'umd' }}
run: |
sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/umd\1.${NODE_ENV}.js')/" vitest.config.ts
sed -i~ "s/\"valtio/vanilla\"/\"..\/..\/..\/dist\/umd\/vanilla.${NODE_ENV}.js\"/" node_modules/derive-valtio/dist/index.umd.js
env:
NODE_ENV: ${{ matrix.env }}
- name: Patch for SystemJS
Expand Down
7 changes: 0 additions & 7 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,5 @@ export default defineConfig({
},
environment: 'jsdom',
dir: 'tests',
deps: {
optimizer: {
web: {
include: ['derive-valtio'],
},
},
},
},
})

0 comments on commit 94be18b

Please sign in to comment.