@taboo-avalanche/andesite-compiler 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compile.d.ts +24 -0
- package/dist/compile.js +2076 -0
- package/package.json +30 -0
- package/src/compile.ts +142 -0
- package/src/rasterize/puppeteer.ts +2257 -0
- package/tsconfig.json +7 -0
- package/tsup.config.ts +13 -0
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
// 栅格化器:Node 侧运行,依赖 puppeteer 和 archiver 保持 external(体积大、版本敏感)。
|
|
4
|
+
// @taboo-avalanche/andesite 也 external,由消费工程统一解析版本。
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
entry: ['src/compile.ts'],
|
|
7
|
+
format: ['esm'],
|
|
8
|
+
dts: true,
|
|
9
|
+
clean: true,
|
|
10
|
+
sourcemap: false,
|
|
11
|
+
minify: false,
|
|
12
|
+
external: ['@taboo-avalanche/andesite', 'archiver', 'puppeteer'],
|
|
13
|
+
})
|