Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish browser compatible #84

Closed
wants to merge 4 commits into from
Closed

Conversation

EdwinOtten
Copy link
Owner

Update the project to use rollup.js for building a browser-compatible library.

  • Add rollup configuration:

    • Add rollup.config.js to configure rollup.js for building the library.
    • Include input as src/index.ts and output as dist/sportlink-to-mailchimp-converter.umd.js.
    • Use plugins for TypeScript and node resolution.
  • Update package.json:

    • Update the build script to use rollup.js.
    • Add rollup.js and related plugins as dependencies.
    • Change the main and types fields to point to the rollup output.
    • Set the type field to module.
  • Update package-lock.json:

    • Add rollup.js and related plugins as dependencies.
    • Downgrade jest and related dependencies to version 29.1.1.
  • Update tsconfig.json:

    • Ensure compatibility with rollup.js and browser environments.
    • Add a types field to include @jest/globals.
    • Exclude files with names ending with "test.ts".
  • Update README.md:

    • Include instructions for using the library in browser script tags and client-side applications.

…uilding

* **package.json**
  - Change `"type"` to `"module"`
  - Update the build script to use roll-up.js
  - Update the prepublish script to use roll-up.js
  - Update the test script to use the correct jest configuration
  - Add roll-up.js and related plugins as devDependencies
  - Add `tslib` as a dependency

* **package-lock.json**
  - Add roll-up.js and related plugins
  - Update versions of `@jest/globals`, `@types/jest`, and `jest`
  - Add `tslib` as a dependency
@EdwinOtten EdwinOtten closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant