Skip to content

Commit

Permalink
fix vercel (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 authored Aug 16, 2024
1 parent d9ef0cc commit d753928
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ export default defineConfig({
'rc-collapse$': path.resolve('src'),
'rc-collapse/es': path.resolve('src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Collapse',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
outputPath: '.doc',
base: basePath,
publicPath,
});
5 changes: 2 additions & 3 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": ".doc" }
"config": { "distDir": "dist" }
}
],
"routes": [{ "src": "/(.*)", "dest": "/dist/$1" }]
]
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@
"assets/*.css"
],
"scripts": {
"build": "dumi build",
"compile": "father build && lessc assets/index.less assets/index.css",
"coverage": "npm test -- --coverage",
"coverage": "rc-test --coverage",
"docs:build": "dumi build",
"docs:deploy": "npm run docs:build && gh-pages -d .doc",
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
"prepare": "husky",
"now-build": "npm run docs:build",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"postpublish": "npm run docs:deploy",
"start": "dumi dev",
"test": "rc-test"
},
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"@@/*": ["src/.dumi/*"],
"rc-collapse": ["src/index.tsx"]
}
}
},
"include": [".dumirc.ts", "./src/**/*.ts", "./src/**/*.tsx", "./docs/**/*.tsx"]
}

0 comments on commit d753928

Please sign in to comment.