aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-27 06:35:47 +0800
committerFabio Berger <me@fabioberger.com>2018-08-27 06:35:47 +0800
commit6a6b424c86b507d4dbfe5821ef81e7f76b818ef9 (patch)
treeb7df15b89ef0f0b3d46519decfca633d2b2cffa5 /packages
parent3a5c6ed00fb96488897fa95fbf267f71def24fc4 (diff)
downloaddexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar.gz
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar.bz2
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar.lz
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar.xz
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.tar.zst
dexon-sol-tools-6a6b424c86b507d4dbfe5821ef81e7f76b818ef9.zip
Move md files to lib folder during build
Diffstat (limited to 'packages')
-rw-r--r--packages/sra-spec/package.json4
-rw-r--r--packages/sra-spec/src/md/index.ts2
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/sra-spec/package.json b/packages/sra-spec/package.json
index ccb7ccb71..9a192d46f 100644
--- a/packages/sra-spec/package.json
+++ b/packages/sra-spec/package.json
@@ -17,9 +17,10 @@
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"test:circleci": "yarn test:coverage",
"clean": "shx rm -rf lib",
- "build": "tsc && yarn build-json",
+ "build": "tsc && copy_md_files && yarn build-json",
"build-json": "ts-node build_scripts/buildJson.ts",
"build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ",
+ "copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/md",
"deploy-site": "discharge deploy"
},
"repository": {
@@ -42,6 +43,7 @@
"@types/node": "^10.5.3",
"chai": "^4.0.1",
"chokidar-cli": "^1.2.0",
+ "copyfiles": "^2.0.0",
"dirty-chai": "^2.0.1",
"discharge": "^0.7.1",
"mocha": "^4.0.1",
diff --git a/packages/sra-spec/src/md/index.ts b/packages/sra-spec/src/md/index.ts
index 076c3c45c..0d1147aa0 100644
--- a/packages/sra-spec/src/md/index.ts
+++ b/packages/sra-spec/src/md/index.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
export const md = {
- introduction: readFileSync('src/md/introduction.md').toString(),
+ introduction: readFileSync('lib/md/introduction.md').toString(),
};