mirror of
https://gitee.com/antv/g6.git
synced 2024-11-30 02:38:20 +08:00
fix: 删除处理ts绝对路径的配置
This commit is contained in:
parent
47c7c07796
commit
33ae59089a
@ -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"
|
||||
|
@ -14,11 +14,6 @@
|
||||
"esModuleInterop": true,
|
||||
"lib": ["esnext", "dom"],
|
||||
"types": ["jest"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@g6/*": ["./src/*"],
|
||||
"@g6/types": ["./types"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"transform": "typescript-transform-paths",
|
||||
|
@ -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'],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user