Skip to content

Commit

Permalink
build: updated build config
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Sep 14, 2021
1 parent d9d9ff1 commit 6c04a09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ const TSCONFIG_PATH = path.resolve(process.cwd(), 'tsconfig.dts.json')
})

// console.log(sourceFile.getStructure())
const ElementPlusSign = '@element-plus/'
const VueCesiumSign = '@vue-cesium/'

sourceFile.getImportDeclarations(dec => dec.getModuleSpecifierValue().startsWith(ElementPlusSign)).map(modifySpecifier)
sourceFile.getImportDeclarations(dec => dec.getModuleSpecifierValue().startsWith(VueCesiumSign)).map(modifySpecifier)

function modifySpecifier(d) {
const replaceTo = 'element-plus/es/' + d.getModuleSpecifierValue().slice(ElementPlusSign.length)
const replaceTo = 'vue-cesium/es/' + d.getModuleSpecifierValue().slice(VueCesiumSign.length)
d.setModuleSpecifier(replaceTo)
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/monorepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ rsync -a dist/entry/types/ dist/vue-cesium/lib/
yarn build:helper

echo "copy index.css"
cp dist/vue-cesium/theme-chalk/index.css dist/vue-cesium/dist/index.css
cp -R dist/vue-cesium/theme-chalk/fonts dist/vue-cesium/dist/fonts
cp dist/vue-cesium/theme-default/index.css dist/vue-cesium/dist/index.css
cp -R dist/vue-cesium/theme-default/fonts dist/vue-cesium/dist/fonts

echo "syncing style.js"
rsync -a dist/styles/es/ dist/vue-cesium/es/components/
Expand Down

0 comments on commit 6c04a09

Please sign in to comment.