mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 03:38:20 +08:00
fix: 删除处理ts绝对路径的配置
This commit is contained in:
parent
47c7c07796
commit
33ae59089a
@ -34,8 +34,7 @@
|
|||||||
"browser": "dist/g6.min.js",
|
"browser": "dist/g6.min.js",
|
||||||
"types": "dist/types/index.d.ts",
|
"types": "dist/types/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && father build && npm run build:declaration && npm run build:umd",
|
"build": "npm run clean && father build && npm run build:umd",
|
||||||
"build:declaration": "ttsc --emitDeclarationOnly --outDir ./dist",
|
|
||||||
"build:umd": "webpack --config webpack.config.js --mode production",
|
"build:umd": "webpack --config webpack.config.js --mode production",
|
||||||
"ci": "npm run build && npm run coverage",
|
"ci": "npm run build && npm run coverage",
|
||||||
"clean": "rimraf es esm lib dist",
|
"clean": "rimraf es esm lib dist",
|
||||||
@ -117,7 +116,6 @@
|
|||||||
"typedoc": "^0.15.0",
|
"typedoc": "^0.15.0",
|
||||||
"typedoc-plugin-markdown": "^2.2.11",
|
"typedoc-plugin-markdown": "^2.2.11",
|
||||||
"typescript": "^3.5.3",
|
"typescript": "^3.5.3",
|
||||||
"typescript-transform-paths": "^1.1.14",
|
|
||||||
"webpack-cli": "^3.3.10",
|
"webpack-cli": "^3.3.10",
|
||||||
"worker-loader": "^2.0.0",
|
"worker-loader": "^2.0.0",
|
||||||
"webpack": "^4.41.4"
|
"webpack": "^4.41.4"
|
||||||
|
@ -14,11 +14,6 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": ["esnext", "dom"],
|
"lib": ["esnext", "dom"],
|
||||||
"types": ["jest"],
|
"types": ["jest"],
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@g6/*": ["./src/*"],
|
|
||||||
"@g6/types": ["./types"]
|
|
||||||
},
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"transform": "typescript-transform-paths",
|
"transform": "typescript-transform-paths",
|
||||||
|
@ -13,10 +13,6 @@ module.exports = {
|
|||||||
path: resolve(process.cwd(), 'dist/'),
|
path: resolve(process.cwd(), 'dist/'),
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
|
||||||
'@g6/types': resolve(process.cwd(), './types'),
|
|
||||||
'@g6': resolve(process.cwd(), './src')
|
|
||||||
},
|
|
||||||
// Add `.ts` as a resolvable extension.
|
// Add `.ts` as a resolvable extension.
|
||||||
extensions: ['.ts', '.js'],
|
extensions: ['.ts', '.js'],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user