Giter Club home page Giter Club logo

breakpoint's People

Contributors

danielvaijk avatar

Watchers

 avatar

breakpoint's Issues

Load type definitions.

  • Process/store type declarations and exports.
  • Take in "types" in package.json as additional content entries source.

Validate package contents.

  • Check that previously published files are not missing in the package.
  • Check that the entry module in main is included in the package.
  • Check that the entry modules in exports are included in the package.
  • Check that the entry module in browser is included in the package.
  • Check that the bin scripts defined in bin are included in the package.

Replace thiserror with anyhow.

The rationale is that since breakpoint is not a library (or, at least, does not offer one), we don't care about providing convenience as part of a public API for error handling different error types. As an application, what matters is how effortlessly we're able to handle runtime errors.

Fix package content file path issues.

  • Allow extensionless files, since those are supported by npm.
  • Fix matching for tarball files against entry values that are prefixed with absolute or relative path components.

Catch breaking changes to JSON asset schemas.

  • Check for $schema property and use that as a spec.
  • If there is no $schema, compare previous and current properties 1:1.
  • The $schema URL should be versioned, otherwise the spec can change on the fly.

Get a list of a package's files.

  • For a tarball, all its contents = package contents.
  • For a local package, it's all the glob patterns defined in files (+ npm ignore lists).

Analyze sneaky facade exports.

Example:

import defaultExport, * as namedExports from './module';
export const example = {
  default: defaultExport,
  ...namedExports
};

We'll need:

  1. A reference to every import specifier.
  2. Find any exported values that contain any known import specifiers (also take into account that the value can be passed around to multiple variables/functions/etc before being re-exported).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.