@quip/dts-bundle-generator
Advanced tools
Comparing version 6.1.2 to 6.2.0
@@ -1,2 +0,2 @@ | ||
// Generated by dts-bundle-generator v6.1.2 | ||
// Generated by dts-bundle-generator v6.2.0 | ||
@@ -3,0 +3,0 @@ export interface CompilationOptions { |
@@ -1,2 +0,2 @@ | ||
// Generated by dts-bundle-generator v6.1.2 | ||
// Generated by dts-bundle-generator v6.2.0 | ||
@@ -3,0 +3,0 @@ export interface CompilationOptions { |
@@ -135,3 +135,3 @@ "use strict"; | ||
} | ||
return node.qualifier; | ||
return ts.createTypeReferenceNode(node.qualifier, node.typeArguments); | ||
} | ||
@@ -138,0 +138,0 @@ return node; |
{ | ||
"name": "@quip/dts-bundle-generator", | ||
"version": "6.1.2", | ||
"version": "6.2.0", | ||
"description": "DTS Bundle Generator (Quip)", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle-generator.js", |
<!-- markdownlint-disable MD033 --> | ||
## Quip instructions | ||
We keep the master branch in sync with the original timocov project | ||
(with the exception of the commit that modified this README) | ||
then use branches named after each released version alongside tags. | ||
Here are instructions for how to checkout, modify, and publish the code: | ||
```sh | ||
# If you haven't added the original project as a remote already. | ||
> git remote add timocov https://github.com/timocov/dts-bundle-generator | ||
# If you haven't logged into npm already. | ||
> npm login | ||
username: ospreyquip | ||
password: p4ssw0rd # get the real password from LastPass :-) | ||
email: ospreyquip@gmail.com | ||
# 1. Fetch the newest version. | ||
> git fetch -a | ||
# 2. Fast-forward our master. | ||
> git checkout master | ||
> git rebase timocov/master | ||
> git push -f | ||
# 3. Create a new branch based on the most recent quip branch. | ||
# If the minor version on master has incremented then use that | ||
# as the new version (A), otherwise bump the patch version (B). | ||
> git tag | grep quip- | tail -n1 | ||
quip-v6.1.0 | ||
> git tag | grep -v quip- | tail -n1 | ||
# A: | ||
v6.2.0 | ||
> git checkout --track origin/quip-v6.1.0 -b quip-v6.2.0 | ||
# B: | ||
v6.1.0 | ||
> git checkout --track origin/quip-v6.1.0 -b quip-v6.1.1 | ||
# 4. Rebase onto master to get the most recent version of the code. | ||
# There will probably be some package.json conflicts, but we're | ||
# about to resolve that. | ||
> git rebase master | ||
# 5. Set the version of the package to correspond to the version | ||
# that you used in step 4. | ||
> vim package.json | ||
# 6. Make your changes, commit, then tag with our new version. | ||
> git commit -am "Made changes XYZ" | ||
> git tag quip-v6.2.0 | ||
> git push --tags | ||
# 7. When you're ready to release, test your code, then publish. | ||
> npm test | ||
> npm run prepare-release | ||
> npm publish | ||
# 8. The prepare-release step above will have modified package.json, | ||
# so restore it back again. | ||
> git checkout HEAD package.json | ||
``` | ||
<div align="center"> | ||
@@ -94,9 +31,9 @@ <a href="https://github.com/timocov/dts-bundle-generator"> | ||
// entry.ts | ||
import { A } from "./a"; | ||
import { B } from "./b"; | ||
import { A } from './a'; | ||
import { B } from './b'; | ||
declare function makeA(): A; | ||
export function makeB(): B { | ||
makeA(); | ||
return new B(); | ||
makeA(); | ||
return new B(); | ||
} | ||
@@ -108,3 +45,4 @@ ``` | ||
```ts | ||
declare class B {} | ||
declare class B { | ||
} | ||
export declare function makeB(): B; | ||
@@ -117,11 +55,11 @@ ``` | ||
```bash | ||
npm install --save-dev dts-bundle-generator | ||
``` | ||
```bash | ||
npm install --save-dev dts-bundle-generator | ||
``` | ||
or | ||
or | ||
```bash | ||
npm install -g dts-bundle-generator | ||
``` | ||
```bash | ||
npm install -g dts-bundle-generator | ||
``` | ||
@@ -213,10 +151,12 @@ 1. Enable `declaration` compiler option in `tsconfig.json` | ||
declare module "a" { | ||
export class A {} | ||
export class A { | ||
} | ||
} | ||
declare module "b" { | ||
export class B {} | ||
export class B { | ||
} | ||
} | ||
declare module "entry" { | ||
import { B } from "b"; | ||
export function makeB(): B; | ||
import { B } from "b"; | ||
export function makeB(): B; | ||
} | ||
@@ -236,2 +176,3 @@ ``` | ||
[ci-link]: https://github.com/timocov/dts-bundle-generator/actions?query=branch%3Amaster | ||
[npm-version-img]: https://badge.fury.io/js/dts-bundle-generator.svg | ||
@@ -238,0 +179,0 @@ [npm-downloads-img]: https://img.shields.io/npm/dm/dts-bundle-generator.svg |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111934
206