Skip to content

Commit

Permalink
chore(release): v0.16.1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 20, 2021
1 parent 71f2547 commit 45f9394
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ async function main() {
await outputFile(output, code)

const jimpDir = dirname(require.resolve('jimp/package.json'))
const { version } = await readJSON(resolve(jimpDir, 'package.json'))
// const { version } = await readJSON(resolve(jimpDir, 'package.json'))

await writeJSON(pkg, { ...await readJSON(pkg), version }, { spaces: 2 })
// await writeJSON(pkg, { ...await readJSON(pkg), version }, { spaces: 2 })

await copy(resolve(jimpDir, 'fonts'), resolve(rootDir, 'fonts'))

await copyFile(resolve(jimpDir, 'types/ts3.1/index.d.ts'), resolve(rootDir, 'dist/jimp.d.ts'))

console.log('jimp-compact@' + version)
// console.log('jimp-compact@' + version)
}

main().catch(error => {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "jimp-compact",
"version": "0.16.1-2",
"description": "Compact version of Jimp",
"repository": "unjs/jimp-compact",
"license": "MIT",
"main": "./dist/jimp.cjs",
"types": "./dist/jimp.d.ts",
"files": [
"dist",
"fonts"
],
"main": "./dist/jimp.cjs",
"types": "./dist/jimp.d.ts",
"scripts": {
"build": "jiti ./build",
"prepack": "yarn build",
"test": "node ./test/index.js"
},
"devDependencies": {
Expand All @@ -21,6 +23,5 @@
"jimp": "^0.16.1",
"jiti": "^1.12.0",
"typescript": "^4.4.3"
},
"version": "0.16.1"
}
}

0 comments on commit 45f9394

Please sign in to comment.