Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Aug 17, 2024
1 parent a7ac5fb commit dd8414f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mdsvex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm i --frozen-lockfile
- run: pnpm test
- run: pnpm test:run
- run: pnpm -r build
env:
CI: true
Expand Down
11 changes: 5 additions & 6 deletions packages/mdsvex/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import resolve from '@rollup/plugin-node-resolve';
import node from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
// import builtins from 'rollup-plugin-node-builtins';
// import globals from 'rollup-plugin-node-globals';
import sucrase from '@rollup/plugin-sucrase';
import dts from 'rollup-plugin-dts';
// import replace from '@rollup/plugin-replace';
import { readFileSync } from 'fs';
import { resolve } from 'path';

import pkg from './package.json' assert { type: 'json' };
const pkg = JSON.parse(readFileSync(resolve('package.json'), 'utf-8'));

export default [
{
plugins: [
resolve({ preferBuiltins: true }),
node({ preferBuiltins: true }),
commonjs({ namedExports: { 'svelte/compiler': ['parse'] } }),
json(),
sucrase({ transforms: ['typescript'] }),
Expand Down
5 changes: 3 additions & 2 deletions packages/svast-stringify/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import ts from '@rollup/plugin-typescript';
import dts from 'rollup-plugin-dts';
import { readFileSync } from 'fs';
import { resolve } from 'path';

import pkg from './package.json' assert { type: 'json' };

const pkg = JSON.parse(readFileSync(resolve('package.json'), 'utf-8'));
export default [
{
plugins: [ts()],
Expand Down
4 changes: 3 additions & 1 deletion packages/svast-utils/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import ts from '@rollup/plugin-typescript';
import dts from 'rollup-plugin-dts';
import { readFileSync } from 'fs';
import { resolve } from 'path';

import pkg from './package.json' assert { type: 'json' };
const pkg = JSON.parse(readFileSync(resolve('package.json'), 'utf-8'));

export default [
{
Expand Down

0 comments on commit dd8414f

Please sign in to comment.