0.1.9 • Published 2 years ago

phantom-deeplink-utils v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Don't install or use this library yet; I'm just playing with build-packages right now.

Give it a few days, thanks everyone.

Issues with our build process:

  1. if you do an default import, like import something from 'rollup-hello-world2' the typescript compiler will think it's going to work, and even provide type definitions for the something object, such as something.functionName() => void, however at runtime this will completely fail because our library has no default exports. However, this oddly works for .js files but not for .ts files, which is very confusing to me. It might be something I'm doing wrong for the typescript compiler that's importing the file.

  2. It would be better if the types were exported to /dist/types rather than /dist/, but for some reason rollup seems hell-bent on exporting types to /dist/ and ignoring the tsconfig.json file.

  3. For some reason 'yarn publish' inside of /library no longer works. npm publish works, and yarn publish used to work, but now it fails for unknown reasons.

  4. TSconfig does not like how src/index is importing files for some reason https://stackoverflow.com/questions/60029058/project-must-list-all-files-or-use-an-include-pattern we are running into the same problem. It might be related to composite: true in tsconfig.json, however turning this on or off hasn't seemed to help at all.

Note: for usability of the library, I believe it is slightly better to have named exports in the index.ts rather than wild-card * exports. However it's not a huge difference.

Scripts: "postbuild": "echo {\"type\":\"commonjs\", \"types\":\"../../types/index.d.ts\"} | json > dist/cjs/package.json && echo {\"type\":\"module\", \"types\":\"../../types/index.d.ts\"} | json > dist/esm/package.json",

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.0

2 years ago