rework misskey-js build to preserve original package structure
This commit is contained in:
parent
2a3a669b9b
commit
404c92b39b
3 changed files with 6 additions and 6 deletions
|
|
@ -45,7 +45,7 @@
|
|||
*
|
||||
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||
*/
|
||||
"mainEntryPointFilePath": "<projectFolder>/built/src/index.d.ts",
|
||||
"mainEntryPointFilePath": "<projectFolder>/built/index.d.ts",
|
||||
|
||||
/**
|
||||
* A list of NPM package names whose exports should be treated as part of this package.
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
"version": "2025.5.2-dev",
|
||||
"description": "Misskey SDK for JavaScript",
|
||||
"license": "MIT",
|
||||
"main": "./built/src/index.js",
|
||||
"types": "./built/src/index.d.ts",
|
||||
"main": "./built/index.js",
|
||||
"types": "./built/index.d.ts",
|
||||
"scripts": {
|
||||
"clean": "node scripts/clean.mjs",
|
||||
"build": "tsc -b && node scripts/post-build.mjs",
|
||||
"rebuild": "pnpm clean && pnpm build",
|
||||
"tsd": "tsd --types \"./built/src/index.d.ts\" --files \"./built/test-d/**/*.ts\"",
|
||||
"tsd": "tsd --types \"./temp/built/src/index.d.ts\" --files \"./temp/built/test-d/**/*.ts\"",
|
||||
"api": "pnpm api-extractor run --local --verbose",
|
||||
"api-prod": "pnpm api-extractor run --verbose",
|
||||
"eslint": "eslint --quiet \"{src,test,test-d,scripts}/**/*.{js,jsx,ts,tsx,vue}\" --cache",
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"typescript": "5.9.2"
|
||||
},
|
||||
"files": [
|
||||
"built/src"
|
||||
"built"
|
||||
],
|
||||
"dependencies": {
|
||||
"eventemitter3": "5.0.1",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"inlineSources": true,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"outDir": "./built/",
|
||||
"outDir": "./temp/built/",
|
||||
"strict": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue