Skip to content

Commit

Permalink
Merge pull request #204 from yaob421123/master
Browse files Browse the repository at this point in the history
update ci
  • Loading branch information
ChenlingasMx committed Apr 7, 2023
2 parents aba6c84 + 815480d commit d92d615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
- run: yarn run build
- run: yarn run build:create

- run: yarn add recursive-readdir-files -w

# examples/base 里面的 ts 转换 成 js版本并存储到 examples/basejs
- run: yarn run build:js
- run: yarn run test
Expand Down
4 changes: 2 additions & 2 deletions script/copy.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* 转换 examples/base下除src目录下所有ts文件为js文件
* */
import recursiveReaddirFiles from 'recursive-readdir-files';
const path = require('path');
const fs = require('fs');
const FS = require('fs-extra');
const ts = require('typescript');
const { transformFileAsync } = require('@babel/core');
const recursiveReaddirFiles = require('recursive-readdir-files');

const PWDEntry = path.resolve(__dirname, '../examples/base/');
const PWDOutPut = path.resolve(__dirname, '../examples/basejs/');

// 获取文件
const getFields = async () => {
const dirToFiles = await recursiveReaddirFiles.default(PWDEntry, {
const dirToFiles = await recursiveReaddirFiles(PWDEntry, {
exclude:
/(node_modules|.uiw|build|dist|\.d\.ts|\.(test|spec)\.(ts|tsx|js|jsx))$/,
});
Expand Down

0 comments on commit d92d615

Please sign in to comment.