Skip to content

Commit

Permalink
chore(deps): replace dependency 'copy-template-dir' with '@tsbb/copy-…
Browse files Browse the repository at this point in the history
…template-dir' #229
  • Loading branch information
jaywcjlove committed Jun 15, 2024
1 parent dcdfd53 commit 6e62676
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
]
},
"dependencies": {
"@tsbb/copy-template-dir": "^1.4.0",
"auto-config-loader": "^1.7.4",
"cheerio": "~1.0.0-rc.12",
"colors-cli": "~1.0.28",
"copy-template-dir": "~1.4.0",
"del": "~6.1.0",
"ejs": "~3.1.6",
"fs-extra": "~11.2.0",
Expand All @@ -88,11 +88,11 @@
"@types/cheerio": "~0.22.31",
"@types/ejs": "~3.1.0",
"@types/fs-extra": "^11.0.1",
"@types/svg2ttf": "~5.0.1",
"@types/svgicons2svgfont": "~10.0.1",
"@types/ttf2eot": "~2.0.0",
"@types/ttf2woff": "~2.0.2",
"@types/ttf2woff2": "~2.0.0",
"@types/svg2ttf": "~5.0.1",
"@types/svgicons2svgfont": "~10.0.1",
"tsbb": "^4.1.5"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="node" />

declare module 'copy-template-dir' {
declare module '@tsbb/copy-template-dir' {
export default function(templateDir: string, targetDir: string, options: Record<string, any>, callback: (err: Error, createdFiles: string[]) => void): void;
}
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import svg2ttf from 'svg2ttf';
import ttf2eot from 'ttf2eot';
import ttf2woff from 'ttf2woff';
import ttf2woff2 from 'ttf2woff2';
import copy from 'copy-template-dir';
import copy from '@tsbb/copy-template-dir';
import del from 'del';
import moveFile from 'move-file';
import { SvgToFontOptions } from './';
Expand Down
5 changes: 5 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ it('example test case.', async () => {
'font-class.html',
'index.html',
'react',
'styles',
'svgtofont.css',
'svgtofont.d.ts',
'svgtofont.eot',
Expand Down Expand Up @@ -101,6 +102,7 @@ it('example simple test case.', async () => {
});
const fileNames = await fs.readdir(dist);
expect(fileNames).toEqual([
'styles',
'svgtofont.css',
'svgtofont.d.ts',
'svgtofont.eot',
Expand Down Expand Up @@ -129,6 +131,7 @@ it('templates simple test case.', async () => {
});
const fileNames = await fs.readdir(dist);
expect(fileNames).toEqual([
'styles',
'svgtofont.css',
'svgtofont.eot',
'svgtofont.less',
Expand Down Expand Up @@ -161,6 +164,7 @@ it('example simple test case for useNameAsUnicode.', async () => {
});
const fileNames = await fs.readdir(dist);
expect(fileNames).toEqual([
'ligature-styles',
'nameAsUnicode.css',
'nameAsUnicode.d.ts',
'nameAsUnicode.eot',
Expand Down Expand Up @@ -200,6 +204,7 @@ it('example .svgtofontrc.js test case for useNameAsUnicode', async () => {
});
const fileNames = await fs.readdir(dist);
expect(fileNames).toEqual([
'ligature-styles',
'nameAsUnicode.css',
'nameAsUnicode.d.ts',
'nameAsUnicode.eot',
Expand Down

0 comments on commit 6e62676

Please sign in to comment.