Skip to content

Commit

Permalink
build: fix components script [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Aug 5, 2021
1 parent d204988 commit d387cd2
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 84 deletions.
4 changes: 2 additions & 2 deletions packages/veui/build/components.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { relative, writeFileSync, statSync, existsSync } = require('fs')
const { resolve, join, extname } = require('path')
const { writeFileSync, statSync, existsSync } = require('fs')
const { resolve, relative, join, extname } = require('path')
const dir = require('node-dir')
const { getSortedComponents } = require('./utils')

Expand Down
2 changes: 1 addition & 1 deletion packages/veui/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const scriptRE = /<script\b(?:\s[^>]*>|>)(.*?)<\/script>/ims
function getComponentDeps () {
let depMap = {}
return build({
entryPoints: [resolve(componentsDir, 'index.js')],
entryPoints: ['./src/components/index.js'],
write: false,
bundle: true,
format: 'esm',
Expand Down
160 changes: 79 additions & 81 deletions packages/veui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d387cd2

Please sign in to comment.