GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Package declaration file for commonjs packages by rbuckton · Pull Request #3159 · microsoft/TypeScript

Conversation

@rbuckton

@rbuckton Ron Buckton (rbuckton) commented May 14, 2015

Copy link
Copy Markdown
Contributor

Implements #3089.

  • Adds a packageName compiler option, used to specify the name of the package.
  • Adds a packageMain compiler option, used to specify the path to the main typescript module for the package.
  • Adds a packageDeclaration compiler option, used to specify the output path of the declaration file for the package.
  • Adds a packageDir compiler option to control the root directory of the package (falls back using: rootDir, the common directory path, the current directory).
  • When the first three options above are supplied and either module or a target of ES6, we should emit a single declaration file for the program inputs over and above any individual declaration files generated if declaration is specified.

The output for a packageDeclaration would have the following form:

  • Exports for the main module will be defined inside of an ambient external module that has the name provided via packageName.
  • Exports for relative modules will be defined inside of an ambient external module that has a name derived from the package name, and the path of the module relative to the package directory, the supplied rootDir, the common directory path, or the current directory.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Ron Buckton (rbuckton) added 13 commits May 7, 2015 11:09
@rbuckton
Added single-file package declaration using multiple ambient modules
094afb2
@rbuckton
Updated format for submodule urls in a package
03b5cc3
@rbuckton
Updated services and harnesses and added a test
57a81e6
@rbuckton
fixed harness to support packageDeclaration
8a1c7c5
@rbuckton
Cleanup, bug fixes
895a096
@rbuckton
Updated test harness
28438bf
@rbuckton
Some cleanup and reorganization of code
1f86bfa
@rbuckton
Merge branch 'packageDeclaration2' of https://github.com/Microsoft/Ty…
567b48a
…peScript into packageDeclaration2
@rbuckton
Added support for package paths in ImportEqualsDeclaration emit
073da99
@rbuckton
Cleaned up package parameters, added packageDir option, added path co…
5f41f68
…mparison function
@rbuckton
Added paramType for packageDir
b001006
@rbuckton
Additional compiler option cleanup
1ecd2e7
@rbuckton
Merged branch 'master' into packageDeclaration2
1266290
@msftclas Microsoft Contribution License Agreements (msftclas) added the cla-not-required label May 14, 2015
@weswigham Wesley Wigham (weswigham) mentioned this pull request Aug 27, 2015
Proposal: Bundling TS module type definitions #4433
Closed
@aboeglin

Arnaud Boeglin (aboeglin) commented Sep 1, 2015

Copy link
Copy Markdown

What is the status on this ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhegazy

Mohamed Hegazy (mhegazy) commented Sep 1, 2015

Copy link
Copy Markdown
Contributor

Arnaud Boeglin (@aboeglin) this is tracked by #4433 now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhegazy

Mohamed Hegazy (mhegazy) commented Sep 29, 2015

Copy link
Copy Markdown
Contributor

closing in favor of #4433

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhegazy Mohamed Hegazy (mhegazy) closed this Sep 29, 2015
@mhegazy
Mohamed Hegazy (mhegazy) deleted the packageDeclaration2 branch November 2, 2017 21:05
@microsoft Microsoft (microsoft) locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@rbuckton @aboeglin @mhegazy @msftclas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.