Skip to content

Commit

Permalink
feat: update pkg size
Browse files Browse the repository at this point in the history
  • Loading branch information
loyep committed Aug 26, 2022
1 parent c2f2f26 commit 486aba8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 38 deletions.
29 changes: 0 additions & 29 deletions compiled/@zerollup/ts-transform-paths/index.js

This file was deleted.

1 change: 0 additions & 1 deletion compiled/@zerollup/ts-transform-paths/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastsc",
"version": "0.0.7",
"version": "0.0.8",
"description": "fastsc",
"homepage": "https://github.com/loyep/fastsc#readme",
"bugs": "https://github.com/loyep/fastsc/issues",
Expand Down Expand Up @@ -49,6 +49,7 @@
"dependencies": {
"@babel/core": "^7.18.9",
"@microsoft/api-extractor": "7.29.5",
"@zerollup/ts-transform-paths": "1.7.18",
"babel-plugin-module-resolver": "4.1.0",
"babel-plugin-react-require": "3.1.3",
"babel-plugin-transform-define": "2.0.1",
Expand Down Expand Up @@ -79,7 +80,6 @@
"@types/semver": "7.3.12",
"@types/yargs-parser": "^21.0.0",
"@vercel/ncc": "0.34.0",
"@zerollup/ts-transform-paths": "1.7.18",
"chalk": "^5.0.1",
"chokidar": "^3.5.3",
"cross-spawn": "^7.0.3",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions src/builder/bundless/dts/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import tsPathsTransformer from '@zerollup/ts-transform-paths';
import fs from 'fs';
import path from 'path';
// @ts-ignore
import tsPathsTransformer from '../../../../compiled/@zerollup/ts-transform-paths';
import chalk from '../../../../compiled/chalk';
import * as logger from '../../../logger';
import { getCache } from '../../../utils';
Expand Down Expand Up @@ -128,7 +128,7 @@ export default async function getDeclarations(
// reason: https://github.com/microsoft/TypeScript/issues/30952
// ref: https://www.npmjs.com/package/@zerollup/ts-transform-paths
const result = program.emit(undefined, undefined, undefined, true, {
afterDeclarations: [tsPathsTransformer(program).afterDeclarations],
afterDeclarations: [tsPathsTransformer(program).afterDeclarations!],
});

// check compile error
Expand Down

0 comments on commit 486aba8

Please sign in to comment.