Skip to content

Commit

Permalink
fix: build web-types and vetur attributes in CI
Browse files Browse the repository at this point in the history
fixes #15942
  • Loading branch information
KaelWD committed Oct 23, 2022
1 parent 8a87af1 commit 44cd4ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -126,6 +126,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('./yarn.lock') }}
- run: yarn --frozen-lockfile --non-interactive
- run: yarn build vuetify
- run: yarn build api
- run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- run: rm -rf release
- run: cp -r ./packages/vuetify/dist release
Expand Down
8 changes: 6 additions & 2 deletions packages/api-generator/src/index.ts
Expand Up @@ -78,10 +78,14 @@ const run = async () => {
}

rimraf.sync(path.resolve('./dist'))
fs.mkdir(path.resolve('./dist'))
await fs.mkdir(path.resolve('./dist'))
createVeturApi(componentData)
createWebTypesApi(componentData, directives)
// rimraf.sync(path.resolve('./src/tmp'))
await fs.mkdir(path.resolve('../vuetify/dist/json'), { recursive: true })
await fs.copyFile(path.resolve('./dist/tags.json'), path.resolve('../vuetify/dist/json/tags.json'))
await fs.copyFile(path.resolve('./dist/attributes.json'), path.resolve('../vuetify/dist/json/attributes.json'))
await fs.copyFile(path.resolve('./dist/web-types.json'), path.resolve('../vuetify/dist/json/web-types.json'))
rimraf.sync(path.resolve('./src/tmp'))
}

run()
9 changes: 0 additions & 9 deletions packages/vuetify/build/build-json.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/vuetify/package.json
Expand Up @@ -97,7 +97,6 @@
"build:dist": "rollup --config build/rollup.config.js",
"build:lib": "cross-env NODE_ENV=lib babel src --out-dir lib --source-maps --extensions \".ts\",\".tsx\",\".snap\" --copy-files --no-copy-ignored --out-file-extension .mjs",
"build:types": "rimraf types-temp && tsc --pretty --emitDeclarationOnly -p tsconfig.dist.json && rollup --config build/rollup.types.config.js && rimraf types-temp",
"build:json": "node build/build-json.js",
"tsc": "tsc",
"debug:test": "cross-env NODE_ENV=test node --inspect --inspect-brk ../../node_modules/jest/bin/jest.js --no-cache -i --verbose",
"test": "node build/run-tests.js",
Expand Down

0 comments on commit 44cd4ca

Please sign in to comment.