Skip to content

Commit

Permalink
clean up NPM build some more
Browse files Browse the repository at this point in the history
  • Loading branch information
dslmeinte committed Aug 31, 2023
1 parent 8f6ba92 commit ee51c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
13 changes: 0 additions & 13 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 2 additions & 15 deletions src-build/build-npm.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
import {build, emptyDir} from "https://deno.land/x/[email protected]/mod.ts"
import {copy} from "https://deno.land/[email protected]/fs/mod.ts"
import {build} from "https://deno.land/x/[email protected]/mod.ts"

await Deno.remove("npm", { recursive: true }).catch((_) => {})
await emptyDir("./npm/esm/src-test/m3")
await emptyDir("./npm/script/src-test/m3")
await emptyDir("./npm/esm/src-test/m3/ecore")
await emptyDir("./npm/script/src-test/m3/ecore")

await copy("schemas", "npm/esm/schemas", { overwrite: true })
await copy("schemas", "npm/script/schemas", { overwrite: true })
await copy("diagrams", "npm/esm/diagrams", { overwrite: true })
await copy("diagrams", "npm/script/diagrams", { overwrite: true })
await copy("models", "npm/esm/models", { overwrite: true })
await copy("models", "npm/script/models", { overwrite: true })
await copy("src-test/m3/ecore/library.ecore", "npm/esm/src-test/m3/ecore/library.ecore", { overwrite: true })
await copy("src-test/m3/ecore/library.ecore", "npm/script/src-test/m3/ecore/library.ecore", { overwrite: true })

const currentVersion = (await Deno.readTextFile("src-build/current-version.txt")).trim()

Expand All @@ -26,6 +12,7 @@ await build({
// see JS docs for overview and more options:
deno: true,
},
test: false,
package: {
// package.json properties:
name: "lioncore-typescript",
Expand Down

0 comments on commit ee51c89

Please sign in to comment.