File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- lib
1
+ / dist
2
2
/transport
3
3
** /node_modules
4
4
coverage
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " amogus-driver" ,
3
- "version" : " 1.2.2 " ,
3
+ "version" : " 1.2.3 " ,
4
4
"description" : " AMOGUS wire protocol implementation for TypeScript" ,
5
- "main" : " lib /index.js" ,
5
+ "main" : " dist /index.js" ,
6
6
"scripts" : {
7
- "build" : " rm -rf lib transport && rollup -c && pnpm fix-dts && tree lib transport" ,
8
- "fix-dts" : " mv transport/transport/*.d.ts transport/ && rm -r transport/transport" ,
7
+ "build" : " rm -rf dist transport && rollup -c && pnpm build:fix && tree dist transport" ,
8
+ "build:fix" : " pnpm build:fix:dts && pnpm build:fix:import" ,
9
+ "build:fix:import" : " sed -i 's/..\\ /index/..\\ /dist\\ /index/g' transport/*" ,
10
+ "build:fix:dts" : " mv transport/transport/*.d.ts transport/ && rm -r transport/transport" ,
9
11
"test:sus" : " susc -l ts __tests__/*.sus && sed -i 's/amogus-driver/..\\ /..\\ /..\\ /src\\ /index/g' __tests__/*_output/ts/index.ts" ,
10
12
"test" : " pnpm lint && pnpm test:sus && jest --coverage" ,
11
13
"lint" : " pnpm eslint src --ext .ts" ,
Original file line number Diff line number Diff line change 1
1
import typescript from 'rollup-plugin-typescript2'
2
+
2
3
export default [
3
4
{
4
5
input : './src/index.ts' ,
5
6
output : {
6
- file : './lib /index.js' ,
7
+ file : './dist /index.js' ,
7
8
format : 'cjs'
8
9
} ,
9
10
plugins : [ typescript ( { tsconfig : './cfg/buildconfig.json' } ) ] ,
You can’t perform that action at this time.
0 commit comments