File: build

package info (click to toggle)
node-crc 4.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: python: 3,073; xml: 632; javascript: 327; sh: 299; ansic: 227; makefile: 24
file content (24 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

rm -fr dist/cjs
rm -fr dist/mjs
tsc -p tsconfig-cjs.json
tsc -p tsconfig-mjs.json
tsc -p tsconfig-declarations.json
rm dist/cjs/*.d.ts
rm dist/cjs/calculators/*.d.ts

cp LICENSE ./dist
cp README.md ./dist

cat >dist/cjs/package.json <<!EOF
{
    "type": "commonjs"
}
!EOF

cat >dist/mjs/package.json <<!EOF
{
    "type": "module"
}
!EOF