fix: 删除处理ts绝对路径的配置

This commit is contained in:
baizn 2020-01-14 21:11:40 +08:00 committed by Moyee
parent 47c7c07796
commit 33ae59089a
3 changed files with 1 additions and 12 deletions

View File

@ -34,8 +34,7 @@
"browser": "dist/g6.min.js",
"types": "dist/types/index.d.ts",
"scripts": {
"build": "npm run clean && father build && npm run build:declaration && npm run build:umd",
"build:declaration": "ttsc --emitDeclarationOnly --outDir ./dist",
"build": "npm run clean && father build && npm run build:umd",
"build:umd": "webpack --config webpack.config.js --mode production",
"ci": "npm run build && npm run coverage",
"clean": "rimraf es esm lib dist",
@ -117,7 +116,6 @@
"typedoc": "^0.15.0",
"typedoc-plugin-markdown": "^2.2.11",
"typescript": "^3.5.3",
"typescript-transform-paths": "^1.1.14",
"webpack-cli": "^3.3.10",
"worker-loader": "^2.0.0",
"webpack": "^4.41.4"

View File

@ -14,11 +14,6 @@
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": ["jest"],
"baseUrl": ".",
"paths": {
"@g6/*": ["./src/*"],
"@g6/types": ["./types"]
},
"plugins": [
{
"transform": "typescript-transform-paths",

View File

@ -13,10 +13,6 @@ module.exports = {
path: resolve(process.cwd(), 'dist/'),
},
resolve: {
alias: {
'@g6/types': resolve(process.cwd(), './types'),
'@g6': resolve(process.cwd(), './src')
},
// Add `.ts` as a resolvable extension.
extensions: ['.ts', '.js'],
},