diff --git a/package.json b/package.json index b963e125..46812e1a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:ts": "tsc", "build": "npm-run-all --sequential clean bundle-swagger build:ts copy-assets", "clean": "rimraf dist/*", - "copy-assets": "node --no-warnings --loader ts-node/esm tools/copyAssets.ts", + "copy-assets": "mkdir -p dist && cp -R src/css dist/src && cp -R src/public dist/src && cp -R src/views dist/src && cp -R src/swagger/api-spec dist/src/swagger", "start": "npm run build && node dist/src/start.js", "dev": "nodemon npm run start", "lint": "eslint . --config eslint.config.js", diff --git a/tools/copyAssets.ts b/tools/copyAssets.ts deleted file mode 100644 index 10d545fa..00000000 --- a/tools/copyAssets.ts +++ /dev/null @@ -1,9 +0,0 @@ -import shell from 'shelljs'; - -shell.mkdir('-p', 'dist'); - -// Copy all the view templates -shell.cp('-R', 'src/css', 'dist/src'); -shell.cp('-R', 'src/public', 'dist/src'); -shell.cp('-R', 'src/views', 'dist/src'); -shell.cp('-R', 'src/swagger/api-spec', 'dist/src/swagger');