-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/readme
- Loading branch information
Showing
26 changed files
with
538 additions
and
325 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,5 @@ | ||
--- | ||
"@fepack/image": patch | ||
--- | ||
|
||
refactor: Build System - Switch from esbuild 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
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
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
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
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
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
{ | ||
"name": "@fepack/image", | ||
"version": "0.2.1", | ||
"description": "Image preloader for fepack", | ||
"description": "easy image control", | ||
"keywords": [ | ||
"fepack", | ||
"image", | ||
"preloader" | ||
"image" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/fepack/image.git", | ||
"directory": "packages/image" | ||
}, | ||
"license": "MIT", | ||
"author": "tooooo1", | ||
"author": { | ||
"name": "Chung-il Jung", | ||
"email": "[email protected]" | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
|
@@ -29,35 +31,26 @@ | |
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/index.js", | ||
"main": "dist/index.cjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "pnpm clean && pnpm build:tsc && pnpm build:js && pnpm copy:cts", | ||
"build:js": "node ./esbuild.config.js", | ||
"build:tsc": "tsc --emitDeclarationOnly", | ||
"clean": "rm -rf dist", | ||
"copy:cts": "cp dist/index.d.ts dist/index.d.cts", | ||
"build": "tsup", | ||
"build:watch": "tsup --watch", | ||
"clean": "rimraf ./dist && rimraf ./coverage", | ||
"lint": "eslint \"**/*.ts*\"", | ||
"lint:pub": "publint --strict", | ||
"prepack": "pnpm build", | ||
"test": "vitest run --coverage", | ||
"test:watch": "vitest" | ||
"test:watch": "vitest --ui --coverage.enabled=true", | ||
"type:check": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
"@fepack/eslint-config-js": "workspace:*", | ||
"@fepack/eslint-config-ts": "workspace:*", | ||
"@fepack/tsconfig": "workspace:*", | ||
"@types/node": "^20.6.2", | ||
"@vitest/browser": "^0.34.4", | ||
"@vitest/coverage-istanbul": "^0.34.4", | ||
"esbuild": "^0.18.11", | ||
"jsdom": "^22.1.0", | ||
"playwright": "^1.38.0", | ||
"vitest": "^0.34.3" | ||
"@types/node": "^18.16.2", | ||
"playwright": "^1.38.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
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,9 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
format: ["cjs", "esm"], | ||
entry: ["src/*.{ts,tsx}", "!**/*.{spec,test}.*"], | ||
sourcemap: true, | ||
dts: true, | ||
splitting: false, | ||
}); |
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,9 @@ | ||
import matchers from "@testing-library/jest-dom/matchers"; | ||
import { cleanup } from "@testing-library/react"; | ||
import { afterEach, expect } from "vitest"; | ||
|
||
expect.extend(matchers); | ||
|
||
afterEach(() => { | ||
cleanup(); | ||
}); |
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,11 @@ | ||
import { defineConfig } from "vitest/config"; | ||
|
||
export default defineConfig({ | ||
test: { | ||
name: "@fepack/react-image", | ||
dir: "./src", | ||
environment: "jsdom", | ||
globals: true, | ||
coverage: { provider: "istanbul" }, | ||
}, | ||
}); |
Oops, something went wrong.