-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tsup vs rollup * just tsup * new plugins -> tsup * fix turbo.json * Fix package.json * jest.config.js --> jest.config.cjs * add UMD support & remove parcel deps * Remove dup type * revert changelog update * Create five-hounds-wash.md * add publint * package.json updates * add umd build * add sourcemaps & treeshaking * Update index.mjs * remove publint deps * add tsup config to missed packages * Fix main * Fix dup devDep * cleanup
- Loading branch information
1 parent
771314e
commit 3b9eedd
Showing
217 changed files
with
8,390 additions
and
11,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
'@flatfile/plugin-webhook-event-forwarder': minor | ||
'@flatfile/plugin-foreign-db-extractor': minor | ||
'@flatfile/plugin-delimiter-extractor': minor | ||
'@flatfile/plugin-convert-sql-ddl': minor | ||
'@flatfile/plugin-connect-via-merge': minor | ||
'@flatfile/util-response-rejection': minor | ||
'@flatfile/plugin-export-workbook': minor | ||
'@flatfile/plugin-space-configure': minor | ||
'@flatfile/bundler-config-rollup': minor | ||
'@flatfile/plugin-graphql-schema': minor | ||
'@flatfile/plugin-json-extractor': minor | ||
'@flatfile/plugin-convert-openapi-schema': minor | ||
'@flatfile/plugin-webhook-egress': minor | ||
'@flatfile/plugin-xlsx-extractor': minor | ||
'@flatfile/plugin-dxp-configure': minor | ||
'@flatfile/plugin-pdf-extractor': minor | ||
'@flatfile/plugin-psv-extractor': minor | ||
'@flatfile/plugin-tsv-extractor': minor | ||
'@flatfile/plugin-xml-extractor': minor | ||
'@flatfile/plugin-zip-extractor': minor | ||
'@flatfile/bundler-config-tsup': minor | ||
'@flatfile/common-plugin-utils': minor | ||
'@flatfile/plugin-constraints': minor | ||
'@flatfile/plugin-job-handler': minor | ||
'@flatfile/plugin-convert-json-schema': minor | ||
'@flatfile/plugin-record-hook': minor | ||
'@flatfile/plugin-view-mapped': minor | ||
'@flatfile/plugin-convert-yaml-schema': minor | ||
'@flatfile/plugin-convert-what3words': minor | ||
'@flatfile/plugin-export-pivot-table': minor | ||
'@flatfile/plugin-extract-html-table': minor | ||
'@flatfile/plugin-import-llm-records': minor | ||
'@flatfile/util-fetch-schema': minor | ||
'@flatfile/plugin-convert-translate': minor | ||
'@flatfile/util-file-buffer': minor | ||
'@flatfile/plugin-convert-currency': minor | ||
'@flatfile/plugin-enrich-sentiment': minor | ||
'@flatfile/plugin-enrich-summarize': minor | ||
'@flatfile/plugin-extract-markdown': minor | ||
'@flatfile/plugin-autocast': minor | ||
'@flatfile/plugin-validate-boolean': minor | ||
'@flatfile/plugin-automap': minor | ||
'@flatfile/plugin-rollout': minor | ||
'@flatfile/util-extractor': minor | ||
'@flatfile/plugin-validate-number': minor | ||
'@flatfile/plugin-validate-string': minor | ||
'@flatfile/plugin-enrich-geocode': minor | ||
'@flatfile/plugin-dedupe': minor | ||
'@flatfile/plugin-validate-email': minor | ||
'@flatfile/plugin-validate-phone': minor | ||
'@flatfile/utils-testing': minor | ||
'@flatfile/plugin-validate-date': minor | ||
'@flatfile/plugin-validate-isbn': minor | ||
'@flatfile/plugin-import-faker': minor | ||
'@flatfile/util-common': minor | ||
'@flatfile/plugin-enrich-gpx': minor | ||
'@flatfile/plugin-import-rss': minor | ||
--- | ||
|
||
The release swaps the package's bundler to tsup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# @flatfile/rollup-config | ||
# @flatfile/bundler-config-rollup | ||
|
||
## 0.1.1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import dotenv from 'dotenv' | ||
import { defineConfig as tsupDefineConfig } from 'tsup' | ||
|
||
dotenv.config() | ||
|
||
export function defineConfig({ includeBrowser = true, includeNode = true }) { | ||
const minify = process.env.NODE_ENV === 'production' | ||
if (!minify) { | ||
console.log('Not in production mode - skipping minification') | ||
} | ||
|
||
const EXTENSION_MAP = { | ||
browser: { | ||
cjs: '.browser.cjs', | ||
default: '.browser.js', | ||
}, | ||
node: { | ||
cjs: '.cjs', | ||
default: '.js', | ||
}, | ||
} | ||
const getOutExtension = | ||
(platform) => | ||
({ format }) => ({ | ||
js: EXTENSION_MAP[platform][format] || EXTENSION_MAP[platform].default, | ||
}) | ||
|
||
const createConfig = (platform) => ({ | ||
name: platform, | ||
platform, | ||
minify, | ||
entryPoints: ['src/index.ts'], | ||
format: ['cjs', 'esm'], | ||
dts: true, | ||
outDir: 'dist', | ||
clean: true, | ||
sourcemap: true, | ||
treeshake: true, | ||
splitting: true, | ||
outExtension: getOutExtension(platform), | ||
}) | ||
|
||
const nodeConfig = createConfig('node') | ||
const browserConfig = createConfig('browser') | ||
|
||
const configs = [] | ||
if (includeNode) configs.push(nodeConfig) | ||
if (includeBrowser) configs.push(browserConfig) | ||
|
||
return tsupDefineConfig(configs) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "@flatfile/bundler-config-tsup", | ||
"version": "0.0.0", | ||
"description": "", | ||
"private": true, | ||
"main": "index.mjs", | ||
"scripts": {}, | ||
"author": "Flatfile, Inc.", | ||
"license": "ISC", | ||
"dependencies": { | ||
"tsup": "^8.3.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { defineConfig } from '@flatfile/bundler-config-tsup' | ||
|
||
export default defineConfig({}) |
File renamed without changes.
Oops, something went wrong.