Avoid rollup step for schema-cli package

This commit is contained in:
Tony Garnock-Jones 2023-12-16 07:46:44 +13:00
parent 4a656dc929
commit 2a6d0912b6
5 changed files with 4 additions and 22 deletions

View File

@ -1,2 +1,2 @@
#!/usr/bin/env node
require('../dist/bin/preserves-schema-ts.js').main(process.argv.slice(2));
require('../lib/bin/preserves-schema-ts.js').main(process.argv.slice(2));

View File

@ -1,2 +1,2 @@
#!/usr/bin/env node
require('../dist/bin/preserves-schemac.js').main(process.argv.slice(2));
require('../lib/bin/preserves-schemac.js').main(process.argv.slice(2));

View File

@ -11,11 +11,9 @@
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
"scripts": {
"clean": "rm -rf lib dist",
"prepare": "yarn compile && yarn rollup",
"prepare": "yarn compile",
"compile": "tsc",
"compile:watch": "yarn compile -w",
"rollup": "rollup -c",
"rollup:watch": "yarn rollup -w",
"test": "true",
"veryclean": "yarn run clean && rm -rf node_modules"
},

View File

@ -1,17 +0,0 @@
import terser from '@rollup/plugin-terser';
function cli(name) {
return {
input: `lib/bin/${name}.js`,
output: [{file: `dist/bin/${name}.js`, format: 'commonjs'}],
external: [
'@preserves/core',
'@preserves/schema',
],
};
}
export default [
cli('preserves-schema-ts'),
cli('preserves-schemac'),
];

View File

@ -9,6 +9,7 @@
"declarationDir": "./lib",
"esModuleInterop": true,
"moduleResolution": "node",
"module": "commonjs",
"sourceMap": true,
"strict": true
},